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
|
|
|
|
class="h-cite{{ with .Get "reply" }} in-reply-to{{ end }}" itemprop="{{ $itemprop }}"{{ with .Get "role" }} role="{{ . }}"{{ end }} itemscope="" itemtype="https://schema.org/{{ .Get "itemtype" }}">
|
|
|
|
{{- .Inner | markdownify | safeHTML -}}
|
|
|
|
</p>
|
|
|
|
{{- else -}}
|
2022-06-11 02:24:54 +00:00
|
|
|
<span
|
|
|
|
class="h-cite{{ with .Get "reply" }} in-reply-to{{ 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 -}}
|