jefklakscodex/themes/jefklak-creative-portfolio/layouts/partials/single-mentions.html

43 lines
1.2 KiB
HTML
Raw Normal View History

2021-03-19 21:34:19 +01:00
{{ if (not .Params.disableComments) }}
{{ $mentions := (where .Site.Data.webmentions "relativeTarget" "==" $.RelPermalink) }}
{{ if $mentions }}
2021-03-24 17:39:26 +01:00
<hr/>
2021-03-19 21:34:19 +01:00
<h3 class="page-header" id="mentions">
<a href="#mentions">
2021-03-25 17:49:44 +01:00
<svg class='icon icon-text' width='24' height='24'>
<title>Discussion</title>
<use xlink:href='#discuss'></use>
</svg>
2021-03-19 21:34:19 +01:00
</a>&nbsp;
Mentions and Replies
</h3>
<div class="tootlist" style="margin-bottom: -3rem">
{{ range $mentions }}
<article class="u-comment h-cite toot">
2022-12-03 14:33:03 +01:00
<small>
2021-03-19 21:34:19 +01:00
<p class="p-content p-name">
{{ .name | safeHTML }}: {{ .content | safeHTML }}
</p>
<div class="meta">
2021-03-25 17:49:44 +01:00
<svg class='icon icon-inline'>
<use xlink:href='#cal1'></use>
</svg>
2021-03-19 21:34:19 +01:00
<time class="dt-published" datetime="{{ .published }}">
{{- $publishedAsDate := .published | time -}}
{{ partial "reldate" $publishedAsDate }}
2021-03-19 21:34:19 +01:00
</time>
&nbsp;|&nbsp;by&nbsp;
<a rel="author" class="u-author h-card u-url permalink" href="{{ .source }}">
2022-12-03 14:33:03 +01:00
{{ .author.name | safeHTML }}
2021-03-19 21:34:19 +01:00
</a>
</div>
2022-12-03 14:33:03 +01:00
</small>
2021-03-19 21:34:19 +01:00
</article>
{{ end }}
</div>
<br/>
{{ end }}
{{ end }}