This repository has been archived on 2020-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
2019-12-12 08:09:31 +00:00
|
|
|
{{ if .Param "indieweb.enabled" }}
|
2019-12-13 07:34:05 +00:00
|
|
|
{{ $md5pl := md5 (replace .Permalink "/" "") }}
|
2019-12-12 08:09:31 +00:00
|
|
|
{{ $mentions := index .Site.Data.mentions $md5pl }}
|
|
|
|
{{ $dateFormat := ( .Site.Params.dateformat | default "January 02, 2006") }}
|
|
|
|
{{ with $mentions }}
|
|
|
|
<div class="mentions">
|
|
|
|
<details>
|
2020-05-09 09:07:37 +00:00
|
|
|
<summary class="mentions-caption">{{ T "interactions" }}</summary>
|
2019-12-12 08:09:31 +00:00
|
|
|
<ul class="mentions-list">
|
2020-05-09 09:07:37 +00:00
|
|
|
{{ range sort . ".date" "asc" }}{{ $sourceUrl := urls.Parse .source }}
|
|
|
|
<li><a href="{{ .source }}" target="_blank" rel="nofollow noopener noreferrer">{{ $sourceUrl.Host }}</a> <i>{{ dateFormat $dateFormat .date }}</i></li>
|
2019-12-12 08:09:31 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|