mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
toc: look cool
- improve toc styling - make collapsable
This commit is contained in:
@ -13,10 +13,16 @@
|
||||
</div>
|
||||
</header>
|
||||
{{ if .Params.ShowToc }}
|
||||
<blockquote>
|
||||
<div class="toc">Table of Contents</div>
|
||||
{{ .TableOfContents }}
|
||||
</blockquote>
|
||||
<div class="toc">
|
||||
<details>
|
||||
<summary>
|
||||
<div class="details">Table of Contents</div>
|
||||
</summary>
|
||||
<blockquote>
|
||||
{{ .TableOfContents }}
|
||||
</blockquote>
|
||||
</details>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="post-content">{{ .Content }}</div>
|
||||
{{- if .Params.tags }}
|
||||
|
Reference in New Issue
Block a user