10 lines
391 B
HTML
10 lines
391 B
HTML
<!-- Reusable template for table of contents (i.e. start or sidebar of posts single pages) -->
|
|
{{ if .Params.toc }}
|
|
<aside class="toc">
|
|
<div id="js-toc-toggle">
|
|
<h2 class="toc-header">Table of Contents</h2>
|
|
<span class="toc-drop-icon">▾</span>
|
|
</div>
|
|
<div id="js-toc-contents" class="toc-contents">{{ .TableOfContents }}</div>
|
|
</aside>
|
|
{{ end }} |