diff --git a/components/LayoutWrapper.vue b/components/LayoutWrapper.vue index aeb6474fa08b843f42cce1cca9848f7ca8d4768b..40ad7c20a2af081fce19213263be0f9df5321b96 100644 --- a/components/LayoutWrapper.vue +++ b/components/LayoutWrapper.vue @@ -45,7 +45,7 @@ function onScroll() { <slot v-if="navDrawer" name="drawer" :drawer="drawer"> <NavDrawer :drawer="drawer" /> </slot> - <NavTableOfContent :links="page.body.toc.links ?? []" /> + <NavTableOfContent v-if="toc" :links="page.body.toc.links ?? []" /> <nav-back-to-top /> </VApp> </template> diff --git a/components/content/ArticleDoi.vue b/components/content/ArticleDoi.vue index b5009287e8c952b9f0e73052291656800914c18d..fa7e1b86ef58c6e14c2bcb72738255237108d015 100644 --- a/components/content/ArticleDoi.vue +++ b/components/content/ArticleDoi.vue @@ -32,7 +32,7 @@ const articleAbstract = computed(() => { }); </script> <template> - <v-list-item :href="article?.href" :id="props.doi" :target="article?.target" density="compact" color="transparent" + <v-list-item :href="article?.href" :id="`ref-${props.doi}`" :target="article?.target" density="compact" color="transparent" class="px-1"> <template v-if="!mobile" #prepend> <v-icon icon="md:star" :color="props.isRelevant ? 'info' : 'transparent'"></v-icon>