跳转至

Web Design 4 : Customize Markdown Grammar In SSG

导言

apply Mkdocs grammar into my theme

{{ 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

...

参考文献

评论