diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/toc.html | 6 |
2 files changed, 8 insertions, 0 deletions
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 @@ <main> {{ partial "titleblock.html" . }} + {{ partial "toc.html" . }} + {{ .Content }} </main> 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) }} +<aside> + <b>Table of Contents</b> + {{.TableOfContents}} +</aside> +{{ end }} |