Skip to content

Commit ce7e348

Browse files
committed
Fix Table Of Contents
1 parent 3d9714a commit ce7e348

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

layouts/shortcodes/toc.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{/* usage: {{<toc>}} will render page .TableOfContents regardless of theme toggle */}}
2+
{{ if .Page.TableOfContents }}
3+
<h1>Table Of Contents</h1>
4+
<div class="shortcode-toc">
5+
{{ .Page.TableOfContents }}
6+
</div>
7+
{{ end }}

0 commit comments

Comments
 (0)