From d5310e86ef491cd662fd41a4d80e8e327a36bcd8 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Sun, 7 Jun 2020 01:38:42 -0400 Subject: Adding in table of contents --- layouts/_default/single.html | 2 ++ layouts/partials/toc.html | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 layouts/partials/toc.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ca37c7f..107f51f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,6 +2,8 @@
{{ partial "titleblock.html" . }} + {{ partial "toc.html" . }} + {{ .Content }}
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html new file mode 100644 index 0000000..ebfa8b3 --- /dev/null +++ b/layouts/partials/toc.html @@ -0,0 +1,6 @@ +{{ if (.Params.toc) }} + +{{ end }} -- cgit v1.2.3