mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-11-27 00:07:43 +00:00
11 lines
379 B
HTML
11 lines
379 B
HTML
|
{{- $username := .Get 0 -}}
|
||
|
{{- $username_url := $username | urlize -}}
|
||
|
{{- $taxonomy := "authors" -}}
|
||
|
{{- $profile_page := site.GetPage (printf "/%s/%s" $taxonomy $username_url) -}}
|
||
|
{{- $name := $profile_page.Title | default ($username|markdownify) -}}
|
||
|
{{- with $profile_page -}}
|
||
|
<a href="{{$profile_page.RelPermalink}}">{{$name}}</a>
|
||
|
{{- else -}}
|
||
|
{{- $name -}}
|
||
|
{{- end -}}
|