mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 08:13:41 +00:00
This reverts commit 03af4df1
Ensure `removePathAccents = true` in `config.toml` to workaround the Hugo bug: https://github.com/gohugoio/hugo/issues/5687
Fix #1575
Fix #1563
11 lines
385 B
HTML
11 lines
385 B
HTML
{{- $username := .Get 0 -}}
|
|
{{- $username_url := $username | urlize -}}
|
|
{{- $taxonomy := "authors" -}}
|
|
{{- $profile_page := site.GetPage (printf "/%s/%s" $taxonomy $username_url) -}}
|
|
{{- $name := $profile_page.Params.name | default ($username|markdownify) -}}
|
|
{{- with $profile_page -}}
|
|
<a href="{{$profile_page.RelPermalink}}">{{$name}}</a>
|
|
{{- else -}}
|
|
{{- $name -}}
|
|
{{- end -}}
|