add option to show/hide title in TOC, and add margin-bottom to title

This commit is contained in:
kentnek 2020-06-26 00:40:58 +08:00
parent 9ea3be7d21
commit 8f9fa41512
2 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ $tocBreakpoint: 1024px;
.toc-post-title {
font-size: 0.9rem;
margin-bottom: 0.8rem;
}
#TableOfContents {

View File

@ -29,7 +29,7 @@
</div>
{{ if or .Params.toc .Site.Params.toc }}
<div class="toc-container">
<div class="toc-post-title">{{.Title}}</div>
{{ if .Site.Params.showPageTitleInTOC }} <div class="toc-post-title">{{ .Title }}</div> {{ end }}
{{ .TableOfContents }}
</div>
{{ end }}