diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-12-29 16:04:20 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-12-29 16:04:20 -0500 |
commit | 5c745caf64adb056677d09ad2099e8feaec6b82c (patch) | |
tree | 170dadf2cc87bd715d0e97491cd86b4c7d6eb5df /generators/hugo/themes/tdro/layouts/_default | |
parent | decde8f6bb3108d5b3281b76aa678c2913a974ac (diff) | |
download | thedroneely.com-5c745caf64adb056677d09ad2099e8feaec6b82c.tar.gz thedroneely.com-5c745caf64adb056677d09ad2099e8feaec6b82c.tar.bz2 thedroneely.com-5c745caf64adb056677d09ad2099e8feaec6b82c.zip |
generators/hugo/single.html: Add table of contents switch
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/_default')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/single.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/single.html b/generators/hugo/themes/tdro/layouts/_default/single.html index 707ca2f..597818b 100644 --- a/generators/hugo/themes/tdro/layouts/_default/single.html +++ b/generators/hugo/themes/tdro/layouts/_default/single.html @@ -6,12 +6,19 @@ <article class="content document"> <h2 class="title is-2 serif">{{ .Title }}</h2> - <p class="subtitle is-6 has-text-grey-dark"> + {{ if .Params.toc }} + <span class="tableofcontents marginnote rightnote"> + <span class="serif is-size-6 is-uppercase has-text-weight-bold has-spacing-widest has-margin-bottom-sm is-block">Table of Contents</span> + {{ .TableOfContents }} + </span> + {{ end }} + + <aside class="subtitle is-6 has-text-grey-dark"> {{- partial "page-meta.html" . -}} <br> <span class="isso-comments-counter"><a class="underline has-text-grey-dark focus-link" title="Jump to Comments" href="#isso-thread">0 Comments</a> ·</span> {{- partial "read-time.html" . -}} · {{ .FuzzyWordCount }} words - </p> + </aside> {{- partial "page-status.html" . -}} |