Web Design 4 : Customize Markdown Grammar In SSG

导言

apply Mkdocs grammar into my theme

1
2
3
4
5
6
7
8
{{ 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

参考文献

Author

Shaojie Tan

Posted on

2023-12-03

Updated on

2025-01-30

Licensed under