We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 954c29e commit 5b84fcbCopy full SHA for 5b84fcb
1 file changed
layouts/projects.html
@@ -17,6 +17,7 @@
17
{{- $contentToc := ne $tableOfContents `<nav id="TableOfContents"></nav>` -}}
18
{{- $hasToc := $contentToc | or (gt (len $data) 0) | or (gt (len $pages) 0) -}}
19
{{- $showToc := $toc.enable | and $hasToc -}}
20
+ {{- .Store.Set "showToc" $showToc -}}
21
{{- $localData := newScratch -}}
22
{{- $pageCount := 0 -}}
23
{{- /* Paginate before content */ -}}
@@ -227,7 +228,6 @@ <h2 class="toc-title{{ with $params.password }} encrypted-hidden{{ end }}">
227
228
229
{{- /* TOC Dialog */ -}}
230
{{- if $showToc -}}
- {{- .Page.Store.Set "hasToc" true -}}
231
<dialog id="toc-dialog" aria-labelledby="toc-dialog-title" role="dialog">
232
<div class="toc">
233
<h2 class="toc-title">{{ T "single.contents" }}</h2>
0 commit comments