Skip to content

Commit

Permalink
fix: replace resources.PostCSS with css.PostCSS (#243)
Browse files Browse the repository at this point in the history
fix: replace Sites.First with Sites.Default

Bump minimal Hugo version to 0.128.0
  • Loading branch information
razonyang authored Aug 20, 2024
1 parent 876b814 commit ee85370
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion exampleSite/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<nav class="navbar">
<ul>
<li class="nav-item">
<a class="nav-link" href="{{ .Sites.First.Home.RelPermalink }}">
<a class="nav-link" href="{{ .Sites.Default.Home.RelPermalink }}">
{{ partial "icons/icon" (dict "vendor" "bootstrap" "name" "house" "width" "1.25rem" "height" "1.25rem" "className" "navbar-icon me-1") }}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ notAlternative = true
[module]
[module.hugoVersion]
extended = true
min = "0.124.0"
min = "0.128.0"

[[module.imports]]
path = "github.com/hugomods/i18n-js"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/search/assets/css-resource.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"enableSourceMap" (not hugo.IsProduction)
"outputStyle" (cond hugo.IsProduction "compressed" "expanded")
}}
{{- $css = $css | toCSS $options | resources.PostCSS $postCSSOpts }}
{{- $css = $css | toCSS $options | css.PostCSS $postCSSOpts }}
{{- return $css -}}
2 changes: 1 addition & 1 deletion layouts/partials/search/assets/js-resource.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $defaultLang := .Sites.First.Language.Lang }}
{{- $defaultLang := .Sites.Default.Language.Lang }}
{{- $langs := newScratch }}
{{- range .Site.Languages }}
{{- $langs.Set .Lang (dict "lang" .Lang "name" .LanguageName) }}
Expand Down

0 comments on commit ee85370

Please sign in to comment.