mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
fix: theme configuration failed to be retrieved for articles with Chinese paths
resolve #656
This commit is contained in:
@@ -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,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" . -}}
|
||||
|
||||
Reference in New Issue
Block a user