Skip to content

Commit

Permalink
fix: replace Sites.First with Sites.Default (#36)
Browse files Browse the repository at this point in the history
Bump minimal Hugo version to 0.127.0
  • Loading branch information
razonyang authored Aug 20, 2024
1 parent f767bcf commit d8471e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[module.hugoVersion]
extended = true
min = "0.127.0"

[[module.imports]]
path = "github.com/hugomods/snackbar"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/code-block-panel/assets/js-resource.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{{- $params := merge $defaults .Site.Params.code_block_panel (dict
"icons" $icons
"i18n" $i18n.Values
"defaultLang" $sites.First.Language.Lang)
"defaultLang" $sites.Default.Language.Lang)
}}
{{- $options := dict
"params" $params
Expand Down

0 comments on commit d8471e8

Please sign in to comment.