add option to show/hide title in TOC, and add margin-bottom to title
This commit is contained in:
parent
9ea3be7d21
commit
8f9fa41512
|
@ -85,6 +85,7 @@ $tocBreakpoint: 1024px;
|
|||
|
||||
.toc-post-title {
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
|
||||
#TableOfContents {
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue