diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 59820aa5..c0c15c39 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251225090302-dcc5e32c" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251225091608-3482b8bf" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/_partials/widgets.html b/layouts/_partials/widgets.html index 24e1ed44..abfbd8e0 100644 --- a/layouts/_partials/widgets.html +++ b/layouts/_partials/widgets.html @@ -17,7 +17,7 @@ {{- end -}} {{- /* toc dialog button */ -}} - {{- if .Page.Store.Get "hasToc" -}} + {{- if .Store.Get "showToc" -}}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 0b50d097..671b4900 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -9,6 +9,7 @@ {{- $toc := .Store.Get "toc" -}} {{- $tableOfContents := .Fragments.ToHTML ($toc.startlevel | int) ($toc.endlevel | int) ($toc.ordered | default false) -}} {{- $showToc := $toc.enable | and (ne $tableOfContents ``) -}} + {{- .Store.Set "showToc" $showToc -}} {{- $tableOfContents = dict "Content" $tableOfContents "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}