diff --git a/src/lib/components/ArticleOverview.svelte b/src/lib/components/ArticleOverview.svelte new file mode 100644 index 0000000..1dde117 --- /dev/null +++ b/src/lib/components/ArticleOverview.svelte @@ -0,0 +1,55 @@ + + + + +
+ Outline + {#each headings as { text, level, href }} +
+ + + {text} + +
+ {/each} +
+ + diff --git a/src/lib/components/WPAdapter.svelte b/src/lib/components/WPAdapter.svelte index 54b3066..a2b4f6d 100644 --- a/src/lib/components/WPAdapter.svelte +++ b/src/lib/components/WPAdapter.svelte @@ -1,14 +1,16 @@
+ {#if headings} + + {/if} {@html content}