46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
|
|
||
|
|
||
|
{{ $mentions := (where .Site.Data.webmentions "target" "==" $.RelPermalink) }}
|
||
|
|
||
|
{{ if $mentions }}
|
||
|
<h4 class="page-header">
|
||
|
<svg class='icon icon-text' width='24' height='24'>
|
||
|
<use xlink:href='#discuss'></use>
|
||
|
</svg>
|
||
|
Mentions and Replies
|
||
|
</h4>
|
||
|
|
||
|
<dic class="tootlist">
|
||
|
{{ range $mentions }}
|
||
|
<div class="u-comment h-cite toot">
|
||
|
<p class="p-content p-name">
|
||
|
{{ .content | safeHTML }}
|
||
|
</p>
|
||
|
<div class="meta">
|
||
|
<svg class='icon icon-text' width='24' height='24'>
|
||
|
<use xlink:href='#cal1'></use>
|
||
|
</svg>
|
||
|
<time class="dt-published" datetime="{{ .published }}">
|
||
|
{{ .published }}
|
||
|
</time>
|
||
|
| by
|
||
|
<a rel="author" class="u-author h-card u-url" href="{{ .source }}">
|
||
|
{{ $name := .author.name | safeHTML }}
|
||
|
{{ if isset .author "picture" }}
|
||
|
<div class="avatar">
|
||
|
<img class="u-photo" src="{{ .author.picture | safeHTML }}" alt="{{ $name }}" />
|
||
|
</div>
|
||
|
{{ else }}
|
||
|
<div class="avatar">
|
||
|
<img class="u-photo" src="/img/avatar-anonymous.jpg" alt="{{ $name }}" />
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
{{ $name }}
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
<br/>
|
||
|
{{ end }}
|