mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-28 05:34:13 -04:00
add Table of Contents
- can be used by `ShowToc = true` in Single Post params
This commit is contained in:
parent
bfcf89ccca
commit
c06357a604
2 changed files with 12 additions and 0 deletions
|
@ -12,6 +12,12 @@
|
|||
{{- .Date.Format "January 2, 2006" -}}
|
||||
</div>
|
||||
</header>
|
||||
{{ if .Params.ShowToc }}
|
||||
<blockquote>
|
||||
<div class="toc">Table of Contents</div>
|
||||
{{ .TableOfContents }}
|
||||
</blockquote>
|
||||
{{ end }}
|
||||
<div class="post-content">{{ .Content }}</div>
|
||||
{{- if .Params.tags }}
|
||||
<footer class="post-footer">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue