diff --git a/src/lib/components/util/ArticleNav.svelte b/src/lib/components/util/ArticleNav.svelte new file mode 100644 index 0000000..b3fb33a --- /dev/null +++ b/src/lib/components/util/ArticleNav.svelte @@ -0,0 +1,42 @@ + + + + + + + Details + + {#if publicationType === 'blog'} + + Table of Contents + + {:else} + + {/if} + + + \ No newline at end of file diff --git a/src/routes/publication/+page.svelte b/src/routes/publication/+page.svelte index dbd673f..75aa31d 100644 --- a/src/routes/publication/+page.svelte +++ b/src/routes/publication/+page.svelte @@ -3,13 +3,18 @@ import { TextPlaceholder } from "flowbite-svelte"; import type { PageData } from "./$types"; import { onDestroy } from "svelte"; + import ArticleNav from "$components/util/ArticleNav.svelte"; let { data }: { data: PageData } = $props(); onDestroy(() => data.parser.reset()); - +{#key data} + +{/key} + + {#await data.waitable} {:then}