Update deprecated functions in Hugo templates

Thus, the minimum version will also be moved.
This commit is contained in:
Gabriel Arazas 2024-11-19 10:56:29 +08:00
parent d67d2d3bc4
commit 814a6c003a
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[module]
[module.hugoVersion]
extended = true
min = "0.120.0"
min = "0.128.0"
[[module.imports]]
path = "github.com/foo-dogsquared/hugo-mod-simple-icons"

View File

@ -3,7 +3,7 @@
<a href="#top">{{ i18n "back_to_top" | default "Back to top" }}</a>
<!-- Linking to other languages' homepage. -->
{{ if $.Site.IsMultiLingual }}
{{ if hugo.IsMultiLingual }}
<p>{{ i18n "multilingual" }}:
<span class="site__list site__languages">
{{ range $.Site.Languages }}

View File

@ -3,10 +3,10 @@
{{- $stylesheets := slice }}
<!-- The main stylesheet being compiled. -->
{{- $main := resources.Get "scss/main.scss" | resources.ToCSS }}
{{- $main := resources.Get "scss/main.scss" | toCSS }}
{{- /* Combine all of the custom schems in under one stylesheet */ -}}
{{- $themes := resources.Get "templates/theme.scss" | resources.ExecuteAsTemplate "css/themes.css" . | resources.ToCSS
{{- $themes := resources.Get "templates/theme.scss" | resources.ExecuteAsTemplate "css/themes.css" . | toCSS
}}
{{- /* Append the main stylesheet to be the last so the resulting stylesheet will make the custom colorschemes at the