Skip to content

Commit

Permalink
Display module dir instead of chapter title
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroCamphuijsen committed May 15, 2024
1 parent 1f84e3e commit b41582d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pages/modules/[module].vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
<div class="flex flex-col h-full w-full p-5">

<ContentDoc v-slot="{ doc }">
<h2 class="prose-2xl font-display mx-16 font-bold text-eSciencePurple w-full pl-2">
Module: {{ doc.title }} <br>
<!-- Module: {{ modObject }} -->
</h2>
<h2 class="prose-2xl font-display mx-16 font-bold text-eSciencePurple w-full pl-2">
Module: {{ route.params.module }}
</h2>
</ContentDoc>
<ChapterBar/>
<NuxtPage />
Expand All @@ -15,6 +14,4 @@

<script setup lang="ts">
const route = useRoute();
console.log("this is", route.params)
</script>
</script>

0 comments on commit b41582d

Please sign in to comment.