mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-17 06:15:02 +00:00
19 lines
652 B
Plaintext
19 lines
652 B
Plaintext
{{ define "mentions" }}
|
|
{{ $rd := . }}
|
|
<ul>
|
|
{{ range $i, $mention := .Data }}
|
|
<li>
|
|
<a href="{{ $mention.Url }}" target="_blank" rel="nofollow noopener noreferrer ugc">
|
|
{{ if $mention.Author }}
|
|
{{ $mention.Author }}
|
|
{{ else }}
|
|
{{ $mention.Url }}
|
|
{{ 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 }} |