diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5f300bf..a110a20 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "body-class" }} article-page - {{/* + {{/* Enable the right sidebar if - Widget different from 'TOC' is enabled - TOC is enabled and not empty @@ -19,7 +19,7 @@ {{- $TOCEnabled := and (not $TOCManuallyDisabled) $TOCWidgetEnabled -}} {{- $hasTOC := ge (len .TableOfContents) 100 -}} {{- .Scratch.Set "TOCEnabled" (and $TOCEnabled $hasTOC) -}} - + {{- .Scratch.Set "hasWidget" (or $HasWidgetNotTOC (and $TOCEnabled $hasTOC)) -}} {{ end }} @@ -31,7 +31,7 @@ {{ end }} {{ partial "article/components/related-content" . }} - + {{ if not (eq .Params.comments false) }} {{ partial "comments/include" . }} {{ end }} diff --git a/layouts/index.html b/layouts/index.html index 0cd0b88..3df95f9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,4 +16,4 @@ {{ define "right-sidebar" }} {{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/article/article.html b/layouts/partials/article/article.html index f3f7e90..f5548f8 100644 --- a/layouts/partials/article/article.html +++ b/layouts/partials/article/article.html @@ -8,4 +8,4 @@ {{ if or .Params.math .Site.Params.article.math }} {{ partialCached "article/components/math.html" . }} {{ end }} - \ No newline at end of file + diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index 179357b..a149a6d 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,13 +1,13 @@ {{- $ThemeVersion := "3.30.0" -}}