fix: revert "fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames"

This commit completes 94e6169320 in reverting commit 03af4df

Ensure `removePathAccents = true` in `config.toml` to workaround the Hugo bug: gohugoio/hugo#5687

Fix #1575
Fix #1563
This commit is contained in:
George Cushen committed 2020-03-05 20:53:26 +00:00
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" }}
+1 -1
View File
@@ -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>