mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-28 05:34:13 -04:00
toc: look cool
- improve toc styling - make collapsable
This commit is contained in:
parent
984d1a576c
commit
16b98dc8f9
2 changed files with 18 additions and 6 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue