2021-03-12 18:48:49 +01:00
|
|
|
{{ if (not .Params.disableComments) }}
|
2021-03-09 11:55:58 +01:00
|
|
|
|
2021-03-16 16:32:49 +01:00
|
|
|
{{ $mentions := (where .Site.Data.webmentions "relativeTarget" "==" $.RelPermalink) }}
|
2021-03-09 11:55:58 +01:00
|
|
|
|
2021-03-12 18:48:49 +01:00
|
|
|
{{ if $mentions }}
|
2021-03-19 20:58:59 +01:00
|
|
|
<h4 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>
|
2021-03-12 18:48:49 +01:00
|
|
|
Mentions and Replies
|
|
|
|
</h4>
|
2021-03-09 11:55:58 +01:00
|
|
|
|
2021-03-12 18:48:49 +01:00
|
|
|
<div class="tootlist" style="margin-bottom: -3rem">
|
|
|
|
{{ range $mentions }}
|
|
|
|
<article 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 }}">
|
2021-03-25 20:58:31 +01:00
|
|
|
{{- $publishedAsDate := .published | time -}}
|
|
|
|
{{ partial "reldate" $publishedAsDate }}
|
2021-03-12 18:48:49 +01:00
|
|
|
</time>
|
|
|
|
| by
|
2021-03-16 16:32:49 +01:00
|
|
|
<a rel="author" class="u-author h-card u-url permalink" href="{{ .source }}">
|
2021-03-12 18:48:49 +01:00
|
|
|
{{ $name := .author.name | safeHTML }}
|
|
|
|
{{ if isset .author "picture" }}
|
|
|
|
<div class="avatar">
|
2021-03-16 16:32:49 +01:00
|
|
|
<img class="u-photo" loading="lazy" src="{{ .author.picture | safeHTML }}" alt="{{ $name }}" />
|
2021-03-12 18:48:49 +01:00
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div class="avatar">
|
2021-03-16 16:32:49 +01:00
|
|
|
<img class="u-photo" loading="lazy" src="/img/avatar-anonymous.jpg" alt="{{ $name }} anonymous photo" />
|
2021-03-12 18:48:49 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ $name }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<br/>
|
2021-03-09 11:55:58 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|