fix: theme configuration failed to be retrieved for articles with Chinese paths

resolve #656
This commit is contained in:
Cell
2025-11-17 14:43:52 +08:00
parent 63655b30a8
commit 44d68d9a5b
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -20,6 +20,9 @@ FixIt theme assets partial
{{- $config = dict "version" (hugo.Store.Get "version") | merge $config -}}
{{- $author := partial "function/get-author-map.html" .Params.author -}}
{{- $noBaseRelPermalink := strings.TrimPrefix (relURL "") $.RelPermalink -}}
{{- with .File -}}
{{- $noBaseRelPermalink = replace $noBaseRelPermalink (.BaseFileName | urlize) .BaseFileName -}}
{{- end -}}
{{- /* Search */ -}}
{{- if .Site.Params.search | and .Site.Params.search.enable -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20251117025418-de3b2340" -}}
{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20251117064353-63655b30" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}