2022-05-25 00:25:16 +00:00
|
|
|
{{- $itemprop := "mentions" -}}
|
|
|
|
{{- with .Get "itemprop" -}}
|
|
|
|
{{ $itemprop = . }}
|
|
|
|
{{- end -}}
|
2022-06-11 20:24:47 +00:00
|
|
|
{{- if .Get "p" -}}
|
|
|
|
<p
|
2022-08-02 03:55:33 +00:00
|
|
|
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" }}">
|
2022-06-11 20:24:47 +00:00
|
|
|
{{- .Inner | markdownify | safeHTML -}}
|
|
|
|
</p>
|
|
|
|
{{- else -}}
|
2022-06-11 02:24:54 +00:00
|
|
|
<span
|
2022-08-02 03:55:33 +00:00
|
|
|
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" }}">
|
2022-05-25 00:25:16 +00:00
|
|
|
{{- .Inner | markdownify | safeHTML -}}
|
2022-06-11 02:24:54 +00:00
|
|
|
</span>
|
2022-06-11 20:24:47 +00:00
|
|
|
{{- end -}}
|