Skip to content

Commit d8471e8

Browse files
authored
fix: replace Sites.First with Sites.Default (#36)
Bump minimal Hugo version to 0.127.0
1 parent f767bcf commit d8471e8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[module.hugoVersion]
22
extended = true
3+
min = "0.127.0"
34

45
[[module.imports]]
56
path = "github.com/hugomods/snackbar"

layouts/partials/code-block-panel/assets/js-resource.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{{- $params := merge $defaults .Site.Params.code_block_panel (dict
2424
"icons" $icons
2525
"i18n" $i18n.Values
26-
"defaultLang" $sites.First.Language.Lang)
26+
"defaultLang" $sites.Default.Language.Lang)
2727
}}
2828
{{- $options := dict
2929
"params" $params

0 commit comments

Comments
 (0)