fix(i): error calling merge: destination must be a map, got <nil>

This commit is contained in:
Cell
2025-12-30 16:39:59 +08:00
parent 721c9d9b10
commit 3865162f6d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251230083237-0ae4f635" -}}
{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251230083959-721c9d9b" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $rvc := .Page.Params.repoVersion | merge .Page.Site.Params.repoVersion -}}
{{- $rvc := (.Page.Params | merge .Page.Site.Params).repoVersion -}}
{{- $version := .Get 0 -}}
{{- $type := .Get 1 | default "new" | lower -}}
{{- $label := T (printf "version.%v" $type) | default (upper $type) -}}