Files
hyzendust.github.io/themes/hugo-theme-yue/layouts/_partials/page/author.html
2025-11-11 18:07:05 +05:30

13 lines
354 B
HTML

{{ $author := default site.Params.author .Params.author }}
{{- with $author -}}
{{- /* string or []string */ -}}
{{- $authorType := printf "%T" $author -}}
<span class="author">
{{- if eq $authorType "string" -}}
{{- . -}}
{{- else if eq $authorType "[]string" -}}
{{- delimit $author (i18n "authorDelimiter") -}}
{{- end -}}
</span>
<br>
{{- end -}}