mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
support additional name field for indieweb-author
This commit is contained in:
parent
ac741d2575
commit
429c1b731d
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@
|
|||
{{- end -}}
|
||||
<span itemprop="name" class="p-name fn n">
|
||||
{{- if (.Get "first-name") -}}<span itemprop="givenName" class="p-given-name given-name">{{- .Get "first-name" -}}</span>{{- end }}
|
||||
{{ if (.Get "last-name") -}}<span itemprop="familyName" class="p-family-name family-name">{{- .Get "last-name" -}}</span>{{- end -}}
|
||||
{{- if (.Get "addl-name") }} <span itemprop="additionalName" class="p-additional-name additional-name">{{- .Get "addl-name" -}}</span>{{- end -}}
|
||||
{{- if (.Get "last-name") }} <span itemprop="familyName" class="p-family-name family-name">{{- .Get "last-name" -}}</span>{{- end -}}
|
||||
{{- if (.Get "nickname") -}}<span class="p-nickname nickname">{{- .Get "nickname" -}}</span>{{- end -}}
|
||||
{{- if (.Get "name") -}}{{- .Get "name" -}}{{- end -}}
|
||||
</span>{{- if (.Get "appendString") -}}{{- .Get "appendString" -}}{{- end -}}{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|
||||
|
|
Loading…
Reference in a new issue