diff --git a/src/_components/footnotes.vto b/src/_components/footnotes.vto new file mode 100644 index 0000000..508a4ec --- /dev/null +++ b/src/_components/footnotes.vto @@ -0,0 +1,9 @@ +
+ diff --git a/src/_components/head.vto b/src/_components/head.vto index 34dbdf5..581ed67 100644 --- a/src/_components/head.vto +++ b/src/_components/head.vto @@ -25,4 +25,23 @@ {{ title }} {{ if !production }} + {{# Load Sa11y #}} + + + + {{ /if }} diff --git a/src/_components/table_of_contents.vto b/src/_components/table_of_contents.vto new file mode 100644 index 0000000..2312a6b --- /dev/null +++ b/src/_components/table_of_contents.vto @@ -0,0 +1,20 @@ + diff --git a/src/_components/webring.vto b/src/_components/webring.vto index dcc337c..9414857 100644 --- a/src/_components/webring.vto +++ b/src/_components/webring.vto @@ -2,10 +2,14 @@ class="mb-2 lg:mb-4 px-2 py-1 bg-surface0 text-center text-lg rounded-md w-full sm:w-1/2 xl:w-1/3" >

{{ ring.name }}

- < Previous | + < Previous | {{ if ring.random }} - Random | + Random | {{ /if }} - All | - Next > + All | + Next > diff --git a/src/_includes/layouts/blog-post.vto b/src/_includes/layouts/blog-post.vto index 5313fe5..19bb9a1 100644 --- a/src/_includes/layouts/blog-post.vto +++ b/src/_includes/layouts/blog-post.vto @@ -2,20 +2,38 @@

{{ title }}

-

+ +

Published on

-

+ +

+

+ {{ readingInfo.words }} words, about {{ readingInfo.minutes }} + minute{{ if readingInfo.minutes != 1 }}s{{ /if }} +

+ + {{ if toc.length }} + {{ await comp.table_of_contents({"toc": toc}) }} + {{ else }} +
+ {{ /if }} +
{{ content }}
+ {{ if footnotes.length }} +
+ {{ await comp.footnotes({"footnotes": footnotes }) }} +
+ {{ /if }}
{{ /layout }}