mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-23 14:38:36 +00:00
7bffa43920
* .Site.Params.post_meta → .Site.Params.Entry.meta * .Site.Params.toc → .Site.Params.Entry.toc * .Site.Params.tocOpen → .Site.Params.Entry.tocOpen
9 lines
No EOL
316 B
HTML
9 lines
No EOL
316 B
HTML
{{- $toc := default .Site.Params.Entry.toc .Params.toc -}}
|
|
{{- $tocOpen := default .Site.Params.Entry.tocOpen .Params.tocOpen -}}
|
|
|
|
{{- if $toc }}
|
|
<details class="entry__toc toc" {{ if $tocOpen }}open{{ end }}>
|
|
<summary class="toc__title">{{- T "entry_toc" -}}</summary>
|
|
{{ .TableOfContents }}
|
|
</details>
|
|
{{- end }} |