From 429c1b731dcd73bad0c3356cf8c6dd2a5a5f1557 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 1 Nov 2023 13:13:32 -0700 Subject: [PATCH] support additional name field for indieweb-author --- layouts/shortcodes/indieweb-person.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/indieweb-person.html b/layouts/shortcodes/indieweb-person.html index bf9aa6f..56d8ff4 100644 --- a/layouts/shortcodes/indieweb-person.html +++ b/layouts/shortcodes/indieweb-person.html @@ -10,7 +10,8 @@ {{- end -}} {{- if (.Get "first-name") -}}{{- .Get "first-name" -}}{{- end }} - {{ if (.Get "last-name") -}}{{- .Get "last-name" -}}{{- end -}} + {{- if (.Get "addl-name") }} {{- .Get "addl-name" -}}{{- end -}} + {{- if (.Get "last-name") }} {{- .Get "last-name" -}}{{- end -}} {{- if (.Get "nickname") -}}{{- .Get "nickname" -}}{{- end -}} {{- if (.Get "name") -}}{{- .Get "name" -}}{{- end -}} {{- if (.Get "appendString") -}}{{- .Get "appendString" -}}{{- end -}}{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}