Last active
February 24, 2020 20:27
-
-
Save xiaoouwang/5baf36b2df7a85160b02c454ce001915 to your computer and use it in GitHub Desktop.
hugo toc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- define "main" -}} | |
<article class="article"> | |
{{ partial "page_header" . }} | |
<div class="article-container"> | |
<div class="article-style"> | |
{{ .Content }} | |
</div> | |
{{ if .Site.Params.toc | default true }} | |
{{ partial "toc" . }} | |
{{ end }} | |
{{ partial "page_footer" . }} | |
</div> | |
</article> | |
{{- end -}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment