From cf40c32443866c4650534e68a860e2bb7169a272 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 7 Aug 2024 00:39:11 +0100 Subject: [PATCH] Add toc to main-article partial --- layouts/partials/main-article.html | 33 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/layouts/partials/main-article.html b/layouts/partials/main-article.html index 340caf1..6b56827 100644 --- a/layouts/partials/main-article.html +++ b/layouts/partials/main-article.html @@ -1,15 +1,22 @@ -
-
-

{{ .Title }}

-
- {{ with .Params.author }} -

{{ .name }}

-

on

- {{ end }} - {{ if isset .Params "date" }} - +
+
+
+

{{ .Title }}

+
+ {{ with .Params.author }} +

{{ .name }}

+

on

+ {{ end }} {{ if isset .Params "date" }} + + {{ end }} +
+
+
+

Table of Contents

+ {{ if .Params.toc }} + {{ end }}
-
- {{ .Content }} -
+ {{ .Content }} + +