43 lines
1.2 KiB
HTML
43 lines
1.2 KiB
HTML
{{ if (not .Params.disableComments) }}
|
|
{{ $mentions := (where .Site.Data.webmentions "relativeTarget" "==" $.RelPermalink) }}
|
|
|
|
{{ if $mentions }}
|
|
<hr/>
|
|
<h3 class="page-header" id="mentions">
|
|
<a href="#mentions">
|
|
<svg class='icon icon-text' width='24' height='24'>
|
|
<title>Discussion</title>
|
|
<use xlink:href='#discuss'></use>
|
|
</svg>
|
|
</a>
|
|
Mentions and Replies
|
|
</h3>
|
|
|
|
<div class="tootlist" style="margin-bottom: -3rem">
|
|
{{ range $mentions }}
|
|
<article class="u-comment h-cite toot">
|
|
<small>
|
|
<p class="p-content p-name">
|
|
{{ .name | safeHTML }}: {{ .content | safeHTML }}
|
|
</p>
|
|
<div class="meta">
|
|
<svg class='icon icon-inline'>
|
|
<use xlink:href='#cal1'></use>
|
|
</svg>
|
|
<time class="dt-published" datetime="{{ .published }}">
|
|
{{- $publishedAsDate := .published | time -}}
|
|
{{ partial "reldate" $publishedAsDate }}
|
|
</time>
|
|
| by
|
|
<a rel="author" class="u-author h-card u-url permalink" href="{{ .source }}">
|
|
{{ .author.name | safeHTML }}
|
|
</a>
|
|
</div>
|
|
</small>
|
|
</article>
|
|
{{ end }}
|
|
</div>
|
|
<br/>
|
|
{{ end }}
|
|
{{ end }}
|