Web Design 4 : Customize Markdown Grammar In SSG
导言
apply Mkdocs grammar into my theme
sidebar of tableofcontent¶
{{ if gt (len .TableOfContents) 0 }}
<!-- <p>No table of contents available.</p> -->
{{ else }}
<div class="accordion" id="markdownToc">
{{ .TableOfContents }}
</div>
<hr aria-hidden="true">
{{ end }}
annotation¶
...