跳转至

开启 Dev 模式

查看作者的未审核笔记。原有搜索、标签、分类和归档会同时切换。

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

...

参考文献

评论