1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-25 02:02:11 +00:00
seirdy.one/layouts/partials/reply-context.html

26 lines
1,016 B
HTML
Raw Normal View History

{{- $schemaType := "SocialMediaPosting" -}}
{{- with .replyType -}}
{{- $schemaType = . -}}
{{- end -}}
2022-06-30 15:35:05 +00:00
{{- $replyAuthorType := "Person" -}}
{{- with .replyAuthorType -}}
{{- $replyAuthorType = . -}}
{{- end -}}
{{- $replyAuthorRel := "author" -}}
{{- if in $replyAuthorType (slice "Organization" "NewsMediaOrganization") -}}
2022-06-30 15:35:05 +00:00
{{- $replyAuthorRel = "publisher" -}}
{{- end -}}
<aside role="note">
<p>
2023-08-23 23:09:35 +00:00
Reply to <span class="h-cite u-in-reply-to" itemprop="about" itemscope="" itemtype="https://schema.org/{{ $schemaType }}">
<cite itemprop="name" class="p-name">
<a class="u-url" itemprop="url" href="{{ .replyURI }}">{{ .replyTitle | safeHTML}}</a>
2022-08-12 07:00:03 +00:00
</cite>{{ if .replyAuthor }} by
2022-06-30 15:35:05 +00:00
<span itemprop="{{ $replyAuthorRel }}" itemscope="" itemtype="https://schema.org/{{ $replyAuthorType }}" class="h-card vcard p-author">
<a itemprop="url" href="{{ .replyAuthorURI }}" class="u-url url">
<span itemprop="name" class="p-name fn n">{{ .replyAuthor }}</span></a>
2022-08-12 07:00:03 +00:00
</span>{{ end }}
</span>
</p>
</aside>