2022-04-01 01:42:13 +00:00
|
|
|
<span {{ if (.Get "itemprop") -}}itemprop="{{- .Get "itemprop" -}}"{{- end }}
|
2022-05-30 22:49:31 +00:00
|
|
|
itemscope="" itemtype="https://schema.org/Person"
|
2022-04-01 01:42:13 +00:00
|
|
|
class="h-card vcard{{if eq (.Get "itemprop") "author"}} p-author{{end}}">
|
2022-10-23 21:54:36 +00:00
|
|
|
{{- if .Get "url" -}}
|
2022-02-19 20:47:07 +00:00
|
|
|
<a itemprop="url" href="{{- .Get "url" -}}" class="u-url url">
|
2022-10-23 21:54:36 +00:00
|
|
|
{{- end -}}
|
2022-02-23 05:48:10 +00:00
|
|
|
{{- if (.Get "avatar") -}}
|
|
|
|
{{- $avatar_img := (resources.GetRemote (.Get "avatar")).Resize "32x32" -}}
|
|
|
|
<img itemprop="image" class="u-photo photo" src="{{ $avatar_img.RelPermalink }}" alt="" width="16" height="16">
|
2022-04-27 00:15:42 +00:00
|
|
|
{{- end -}}
|
2022-02-19 20:47:07 +00:00
|
|
|
<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 }}
|
2023-11-01 20:13:32 +00:00
|
|
|
{{- 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 -}}
|
2022-05-15 19:31:53 +00:00
|
|
|
{{- if (.Get "nickname") -}}<span class="p-nickname nickname">{{- .Get "nickname" -}}</span>{{- end -}}
|
2022-04-22 04:40:17 +00:00
|
|
|
{{- if (.Get "name") -}}{{- .Get "name" -}}{{- end -}}
|
2022-04-11 00:24:59 +00:00
|
|
|
</span>{{- if (.Get "appendString") -}}{{- .Get "appendString" -}}{{- end -}}{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|
2022-10-23 21:54:36 +00:00
|
|
|
{{- if .Get "url" -}}</a>{{- end -}}{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|
2022-02-19 20:47:07 +00:00
|
|
|
{{- if (.Get "org") }}
|
2022-05-30 22:49:31 +00:00
|
|
|
from <span class="p-org org" itemprop="affiliation" itemscope="" itemtype="https://schema.org/Organization">
|
2022-02-19 20:47:07 +00:00
|
|
|
<a itemprop="url" class="organization-name" href="{{- .Get "org-url" -}}">
|
|
|
|
<span itemprop="name">{{- .Get "org" -}}</span>{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|
2022-03-18 06:32:19 +00:00
|
|
|
</a></span>
|
2022-02-19 20:47:07 +00:00
|
|
|
{{- end -}}
|
|
|
|
</span>{{- /* Strip trailing newline: https://github.com/gohugoio/hugo/issues/1753 */ -}}
|