diff --git a/layouts/shortcodes/indieweb-person.html b/layouts/shortcodes/indieweb-person.html index a2497e7..07373c9 100644 --- a/layouts/shortcodes/indieweb-person.html +++ b/layouts/shortcodes/indieweb-person.html @@ -9,8 +9,8 @@ {{- if (.Get "first-name") -}}{{- .Get "first-name" -}}{{- end }} {{ if (.Get "last-name") -}}{{- .Get "last-name" -}}{{- end -}} - {{- if (.Get "nickname") -}}{{- .Get "nickname" -}}{{- end -}} - {{- if (.Get "name") -}}{{- .Get "name" -}}{{- end -}} + {{- if (.Get "nickname") -}}{{- .Get "nickname" -}} + {{- else if (.Get "name") -}}{{- .Get "name" -}}{{- end -}} {{- if (.Get "appendString") -}}{{- .Get "appendString" -}}{{- end -}}{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}} {{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}} {{- if (.Get "org") }}