aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/polaris/layouts/_default/single.html')
-rw-r--r--themes/polaris/layouts/_default/single.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html
index 21b247d..56b9d9d 100644
--- a/themes/polaris/layouts/_default/single.html
+++ b/themes/polaris/layouts/_default/single.html
@@ -7,5 +7,8 @@
</p>
{{ end }}
{{ end }}
+ {{ if or (eq .Section "posts") (.Params.toc) }}
+ {{ with .TableOfContents }}{{ . }}{{ end }}
+ {{ end }}
{{ .Content }}
{{ end }}