mirror of
https://github.com/Vimux/Binario.git
synced 2024-12-04 20:08:34 +00:00
b099c5e941
Enable/disable "TOC" and "comments" partials for all site or specific posts. See: https://gohugo.io/functions/param/
6 lines
No EOL
196 B
HTML
6 lines
No EOL
196 B
HTML
{{ if .Param "toc" }}
|
|
<details class="post__toc toc" {{ if .Params.tocOpen }}open{{ end }}>
|
|
<summary class="toc__title">{{- T "post_toc" -}}</summary>
|
|
{{ .TableOfContents }}
|
|
</details>
|
|
{{ end }} |