aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-12-29 16:04:20 -0500
committerThedro Neely <thedroneely@gmail.com>2019-12-29 16:04:20 -0500
commit5c745caf64adb056677d09ad2099e8feaec6b82c (patch)
tree170dadf2cc87bd715d0e97491cd86b4c7d6eb5df /generators/hugo/themes/tdro/layouts
parentdecde8f6bb3108d5b3281b76aa678c2913a974ac (diff)
downloadthedroneely.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')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/single.html11
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" . -}}