Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrayb committed Aug 18, 2024
1 parent 32f49e0 commit 62e5e64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/components/CardGrid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
import Card from "/src/components/Card.svelte";
export let target_course;
const course_tags = {
'Dynamics': 'dyn',
'Solid Mechanics': 'sol',
'Statics': 'sta'
}
</script>

<style>
Expand Down Expand Up @@ -35,7 +41,7 @@
<ol class="card-grid-simple d-none">
{#each section[1] as page}
<li class="">
<a href={`/mechref/${course[0]}/${page.id}`} class="text-decoration-none text-black">{page.name}</a>
<a href={`/mechref/${course_tags[course[0]]}/${page.id}`} class="text-decoration-none text-black">{page.name}</a>

</li>
{/each}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dyn/particle_kinematics.astro
Original file line number Diff line number Diff line change
Expand Up @@ -817,4 +817,4 @@ import DisplayEquationCustom from "../../components/DisplayEquationCustom.astro"
</SubSubSection>
</Layout>

<script src="/dyn/particle_kinematics/canvases.js" is:inline></script>
<script src="/mechref/dyn/particle_kinematics/canvases.js" is:inline></script>

0 comments on commit 62e5e64

Please sign in to comment.