From 223bbcf7f65d3225b3c1568bd9ccb847c54028d8 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Sat, 19 Oct 2024 23:22:04 -0400 Subject: Fixed some deprecated variables didn't mean to add these --- themes/hugo-coder/layouts/_default/baseof.html | 10 +++++----- themes/hugo-coder/layouts/partials/header.html | 4 ++-- themes/hugo-coder/layouts/partials/posts/disqus.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'themes') diff --git a/themes/hugo-coder/layouts/_default/baseof.html b/themes/hugo-coder/layouts/_default/baseof.html index 1929618..c63cf48 100644 --- a/themes/hugo-coder/layouts/_default/baseof.html +++ b/themes/hugo-coder/layouts/_default/baseof.html @@ -57,7 +57,7 @@ - {{ if .Site.IsServer }} + {{ if hugo.IsServer }} {{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }} {{ $styles := resources.Get "scss/coder.scss" | resources.ExecuteAsTemplate "style.coder.css" . | toCSS $cssOpts }} @@ -68,7 +68,7 @@ {{ end }} {{ if .Site.Params.rtl }} - {{ if .Site.IsServer }} + {{ if hugo.IsServer }} {{ $cssOpts := (dict "targetPath" "css/coder-rtl.css" "enableSourceMap" true ) }} {{ $styles := resources.Get "scss/coder-rtl.scss" | resources.ExecuteAsTemplate "style.coder-rtl.css" . | toCSS $cssOpts }} @@ -80,7 +80,7 @@ {{ end }} {{ if or (eq .Site.Params.colorScheme "auto") (eq .Site.Params.colorScheme "dark") }} - {{ if .Site.IsServer }} + {{ if hugo.IsServer }} {{ $cssOpts := (dict "targetPath" "css/coder-dark.css" "enableSourceMap" true ) }} {{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts }} @@ -97,7 +97,7 @@ {{ range .Site.Params.customSCSS }} {{/* We don't change the targetPath to because it's transparent to users */}} - {{ if $.Site.IsServer }} + {{ if $hugo.IsServer }} {{ $cssOpts := (dict "enableSourceMap" true ) }} {{ $styles := resources.Get . | toCSS $cssOpts }} @@ -149,7 +149,7 @@ {{ partial "footer.html" . }} - {{ if .Site.IsServer }} + {{ if hugo.IsServer }} {{ $script := resources.Get "js/coder.js" }} {{ else }} diff --git a/themes/hugo-coder/layouts/partials/header.html b/themes/hugo-coder/layouts/partials/header.html index 4b7924e..ea93562 100644 --- a/themes/hugo-coder/layouts/partials/header.html +++ b/themes/hugo-coder/layouts/partials/header.html @@ -3,7 +3,7 @@ {{ .Site.Title }} - {{ if or .Site.Menus.main .Site.IsMultiLingual }} + {{ if or .Site.Menus.main hugo.IsMultilingual }}