aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/hugo-pt2021/layouts/articles/single.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/hugo-pt2021/layouts/articles/single.html b/themes/hugo-pt2021/layouts/articles/single.html
index 76d5c00..5abab69 100644
--- a/themes/hugo-pt2021/layouts/articles/single.html
+++ b/themes/hugo-pt2021/layouts/articles/single.html
@@ -15,6 +15,18 @@
{{- end -}}
<div class='content'>
+ {{- if .Params.toc -}}
+ <h2
+ class='subtitle'
+ title='Table of Contents'
+ aria-label='Table of Contents'
+ >
+ Table of Contents
+ </h2>
+
+ {{- .TableOfContents -}}
+ {{- end -}}
+
{{- .Content -}}
</div><!-- content -->
</div><!-- section -->