mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Revert "Microdata: don't replace "name" with "nickname""
This reverts commit 50d4c9435d
.
This commit is contained in:
parent
50d4c9435d
commit
2c87b6269f
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@
|
||||||
<span itemprop="name" class="p-name fn n">
|
<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 "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 "last-name") -}}<span itemprop="familyName" class="p-family-name family-name">{{- .Get "last-name" -}}</span>{{- end -}}
|
||||||
{{- if (.Get "nickname") -}}<span itemprop="name nickname" class="p-nickname nickname">{{- .Get "nickname" -}}</span>
|
{{- if (.Get "nickname") -}}<span itemprop="nickname" class="p-nickname nickname">{{- .Get "nickname" -}}</span>{{- end -}}
|
||||||
{{- else if (.Get "name") -}}{{- .Get "name" -}}{{- end -}}
|
{{- if (.Get "name") -}}{{- .Get "name" -}}{{- end -}}
|
||||||
</span>{{- if (.Get "appendString") -}}{{- .Get "appendString" -}}{{- end -}}{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|
</span>{{- if (.Get "appendString") -}}{{- .Get "appendString" -}}{{- end -}}{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|
||||||
</a>{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|
</a>{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|
||||||
{{- if (.Get "org") }}
|
{{- if (.Get "org") }}
|
||||||
|
|
Loading…
Reference in a new issue