Skip to content

Commit

Permalink
fix: replace Sites.First with Sites.Default (#170)
Browse files Browse the repository at this point in the history
Bump minimal Hugo version to 0.127.0
  • Loading branch information
razonyang committed Aug 20, 2024
1 parent 40ba3c9 commit 68feff1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [module.hugoVersion]
# min = "0.111.3"
[module.hugoVersion]
min = "0.127.0"

[[module.imports]]
path = "github.com/hbstack/hb"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $isHome := eq .Page.Permalink site.Sites.First.Home.Permalink }}
{{- $isHome := eq .Page.Permalink site.Sites.Default.Home.Permalink }}
{{- return dict
"http-equiv" "refresh"
"content" (printf "%d; url=%s" (cond $isHome 5 0) .Page.Permalink)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $isHome := eq .Page.Permalink site.Sites.First.Home.Permalink }}
{{- $isHome := eq .Page.Permalink site.Sites.Default.Home.Permalink }}
{{- if $isHome }}
{{ partialCached "hb/modules/preferred-language/assets/js" .Page }}
{{- end }}

0 comments on commit 68feff1

Please sign in to comment.