diff --git a/src/lib/components/Blog/Article.svelte b/src/lib/components/Blog/Article.svelte index dbc9593..382cacd 100644 --- a/src/lib/components/Blog/Article.svelte +++ b/src/lib/components/Blog/Article.svelte @@ -1,7 +1,6 @@ @@ -12,23 +11,25 @@
{doc.title}
-
-

- {doc.title} -

- {#if doc.description} -

- {doc.description} -

- {/if} - - +
+
+

+ {doc.title} +

+ {#if doc.description} +

+ {doc.description} +

+ {/if} + +
+
diff --git a/src/lib/components/Toc/MobileToc.svelte b/src/lib/components/Toc/MobileToc.svelte new file mode 100644 index 0000000..5bc0ceb --- /dev/null +++ b/src/lib/components/Toc/MobileToc.svelte @@ -0,0 +1,40 @@ + + + + + + + +

On this page

+
+ + {#if $tocStore.items.size} +
    + {#each $tocStore.items.values() as tocItem} +
  1. + + +
  2. + {/each} +
+ {/if} +
+
+
+
+
diff --git a/src/lib/components/Toc/StickyToc.svelte b/src/lib/components/Toc/StickyToc.svelte index 19dc85c..10e636e 100644 --- a/src/lib/components/Toc/StickyToc.svelte +++ b/src/lib/components/Toc/StickyToc.svelte @@ -14,7 +14,7 @@ -

On this page

+

On this page

{#if $tocStore.items.size} diff --git a/src/routes/blog/[year]/[slug]/+page.svelte b/src/routes/blog/[year]/[slug]/+page.svelte index e361590..253eba0 100644 --- a/src/routes/blog/[year]/[slug]/+page.svelte +++ b/src/routes/blog/[year]/[slug]/+page.svelte @@ -1,14 +1,9 @@ @@ -55,32 +43,9 @@ }} >