mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 22:15:11 +00:00
fix: revert "fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames"
This commit completes94e6169320in reverting commit03af4dfEnsure `removePathAccents = true` in `config.toml` to workaround the Hugo bug: gohugoio/hugo#5687 Fix #1575 Fix #1563
This commit is contained in:
1 parent
337a554a25
commit
4ed72d85b2
2 files changed
+2
-2
No files matched your search
@@ -12,7 +12,7 @@
|
||||
{{ $author_username = $page.Scratch.Get "superuser_username" }}
|
||||
{{ else if $page.Params.authors }}
|
||||
{{ $author = index $page.Params.authors 0 }}
|
||||
{{ $author_username = anchorize $author }}
|
||||
{{ $author_username = urlize $author }}
|
||||
{{ end }}
|
||||
|
||||
{{ $taxonomy := "authors" }}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{{ with .Param $taxonomy }}
|
||||
{{ $link_authors := site.Params.link_authors | default true }}
|
||||
{{ range $index, $value := . }}
|
||||
{{- $profile_page := site.GetPage (printf "/%s/%s" $taxonomy (. | anchorize)) -}}
|
||||
{{- $profile_page := site.GetPage (printf "/%s/%s" $taxonomy (. | urlize)) -}}
|
||||
{{- $name := $profile_page.Params.name | default ($value|markdownify) -}}
|
||||
{{- if gt $index 0 }}, {{ end -}}
|
||||
<span>
|
||||
|
||||
Reference in new issue
Block a user