mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-10 10:22:27 +00:00
port to gitlab.
This commit is contained in:
12
themes/custom/layouts/partials/post/toc.html
Normal file
12
themes/custom/layouts/partials/post/toc.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
|
||||
<div class="post-toc" id="post-toc">
|
||||
<h2 class="post-toc-title">{{ T "toc" }}</h2>
|
||||
{{ $globalAutoCollapseToc := .Site.Params.autoCollapseToc | default false }}
|
||||
<div class="post-toc-content{{ if not (or .Params.autoCollapseToc (and $globalAutoCollapseToc (ne .Params.autoCollapseToc false))) }} always-active{{ end }}">
|
||||
{{.TableOfContents}}
|
||||
</div>
|
||||
<div class="toc-taxonomy">
|
||||
{{ partial "sidebar-taxonomy.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
Reference in New Issue
Block a user