aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/partials/article-table-contents.html
diff options
context:
space:
mode:
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/partials/article-table-contents.html')
-rw-r--r--generators/hugo/themes/tdro/layouts/partials/article-table-contents.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/generators/hugo/themes/tdro/layouts/partials/article-table-contents.html b/generators/hugo/themes/tdro/layouts/partials/article-table-contents.html
new file mode 100644
index 0000000..89970dc
--- /dev/null
+++ b/generators/hugo/themes/tdro/layouts/partials/article-table-contents.html
@@ -0,0 +1,6 @@
+{{- if .Params.toc -}}
+ <table-contents>
+ <h2>Table of Contents</h2>
+ {{ .TableOfContents }}
+ </table-contents>
+{{- end -}}