mirror of
https://github.com/foo-dogsquared/hugo-theme-more-contentful.git
synced 2025-01-30 22:57:57 +00:00
Update deprecated functions in Hugo templates
Thus, the minimum version will also be moved.
This commit is contained in:
parent
d67d2d3bc4
commit
814a6c003a
@ -1,7 +1,7 @@
|
|||||||
[module]
|
[module]
|
||||||
[module.hugoVersion]
|
[module.hugoVersion]
|
||||||
extended = true
|
extended = true
|
||||||
min = "0.120.0"
|
min = "0.128.0"
|
||||||
|
|
||||||
[[module.imports]]
|
[[module.imports]]
|
||||||
path = "github.com/foo-dogsquared/hugo-mod-simple-icons"
|
path = "github.com/foo-dogsquared/hugo-mod-simple-icons"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<a href="#top">{{ i18n "back_to_top" | default "Back to top" }}</a>
|
<a href="#top">{{ i18n "back_to_top" | default "Back to top" }}</a>
|
||||||
|
|
||||||
<!-- Linking to other languages' homepage. -->
|
<!-- Linking to other languages' homepage. -->
|
||||||
{{ if $.Site.IsMultiLingual }}
|
{{ if hugo.IsMultiLingual }}
|
||||||
<p>{{ i18n "multilingual" }}:
|
<p>{{ i18n "multilingual" }}:
|
||||||
<span class="site__list site__languages">
|
<span class="site__list site__languages">
|
||||||
{{ range $.Site.Languages }}
|
{{ range $.Site.Languages }}
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
{{- $stylesheets := slice }}
|
{{- $stylesheets := slice }}
|
||||||
|
|
||||||
<!-- The main stylesheet being compiled. -->
|
<!-- 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 */ -}}
|
{{- /* 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
|
{{- /* Append the main stylesheet to be the last so the resulting stylesheet will make the custom colorschemes at the
|
||||||
|
Loading…
Reference in New Issue
Block a user