2021-11-18 21:56:30 +00:00
|
|
|
{{ define "mentions" }}
|
|
|
|
{{ $rd := . }}
|
|
|
|
<ul>
|
|
|
|
{{ range $i, $mention := .Data }}
|
|
|
|
<li>
|
2021-11-19 21:17:15 +00:00
|
|
|
<a href="{{ $mention.Url }}" target="_blank" rel="nofollow noopener noreferrer ugc">
|
2021-11-18 21:56:30 +00:00
|
|
|
{{ if $mention.Author }}
|
|
|
|
{{ $mention.Author }}
|
|
|
|
{{ else }}
|
2021-11-19 21:17:15 +00:00
|
|
|
{{ $mention.Url }}
|
2021-11-18 21:56:30 +00:00
|
|
|
{{ end }}
|
|
|
|
</a>
|
|
|
|
{{ with $mention.Title }} <b>{{.}}</b>{{ end }}
|
|
|
|
{{ with $mention.Content }} <i>{{.}}</i>{{ end }}
|
|
|
|
{{ with $mention.Submentions }}{{ include "mentions" $rd . }}{{ end }}
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|