Compare commits

...
2 Commits
Author SHA1 Message Date
Jimmy Cai 3e123a30b7 release: 4.0.3 2026-05-25 10:44:02 +02:00
JimmyandGitHub e409eddf5c fix: update TOC manual disable check to read default site parameter (#1341)
* fix: update TOC manual disable check to read default site parameter

* Article -> article

* Undo formatting

* fix: simplify TOC enabled logic by removing manual disable check
2026-05-25 10:43:36 +02:00
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $ThemeVersion := "4.0.2" -}}
{{- $ThemeVersion := "4.0.3" -}}
<footer class="site-footer">
<section class="copyright">
&copy;
+1 -2
View File
@@ -15,8 +15,7 @@
{{- end -}}
{{- end -}}
{{- $TOCManuallyDisabled := eq .Params.toc false -}}
{{- $TOCEnabled := and (not $TOCManuallyDisabled) $TOCWidgetEnabled -}}
{{- $TOCEnabled := and (default .Site.Params.article.toc .Params.toc) $TOCWidgetEnabled -}}
{{- $hasTOC := ge (len .TableOfContents) 100 -}}
{{- .Scratch.Set "TOCEnabled" (and $TOCEnabled $hasTOC) -}}