mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 08:12:11 +00:00
c3ae952081
- Put reply-context in a paragraph - Allow an itemid for mention-work
15 lines
741 B
HTML
15 lines
741 B
HTML
{{- $itemprop := "mentions" -}}
|
|
{{- with .Get "itemprop" -}}
|
|
{{ $itemprop = . }}
|
|
{{- end -}}
|
|
{{- if .Get "p" -}}
|
|
<p
|
|
class="h-cite{{ with .Get "reply" }} in-reply-to{{ end }}"{{ with .Get "itemid" }} itemid="{{ . }}"{{ end }} itemprop="{{ $itemprop }}"{{ with .Get "role" }} role="{{ . }}"{{ end }} itemscope="" itemtype="https://schema.org/{{ .Get "itemtype" }}">
|
|
{{- .Inner | markdownify | safeHTML -}}
|
|
</p>
|
|
{{- else -}}
|
|
<span
|
|
class="h-cite{{ with .Get "reply" }} in-reply-to{{ end }}"{{ with .Get "itemid" }} itemid="{{ . }}"{{ end }} itemprop="{{ $itemprop }}"{{ with .Get "role" }} role="{{ . }}"{{ end }} itemscope="" itemtype="https://schema.org/{{ .Get "itemtype" }}">
|
|
{{- .Inner | markdownify | safeHTML -}}
|
|
</span>
|
|
{{- end -}}
|