18 lines
702 B
HTML
18 lines
702 B
HTML
{{ if .Param "indieweb.enabled" }}
|
|
{{ $md5pl := md5 (replace .Permalink "/" "") }}
|
|
{{ $mentions := index .Site.Data.mentions $md5pl }}
|
|
{{ $dateFormat := ( .Site.Params.dateformat | default "January 02, 2006") }}
|
|
{{ with $mentions }}
|
|
<div class="mentions">
|
|
<details>
|
|
<summary class="caption">{{ T "interactions" }}</summary>
|
|
<ul class="mentions-list">
|
|
{{ range sort . ".date" "asc" }}
|
|
{{ $sourceUrl := urls.Parse .source }}
|
|
<li class="item"><a href="{{ .source }}" target="_blank" rel="nofollow noopener">{{ $sourceUrl.Host }}</a> <i>{{ dateFormat $dateFormat .date }}</i></li>
|
|
{{ end }}
|
|
</ul>
|
|
</details>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }} |