{{ $urlized := .Page.Permalink | md5 }} {{ if ne .Site.Data.webmentions nil }} {{ if index .Site.Data.webmentions $urlized }}
{{ $likes := index (index .Site.Data.webmentions $urlized) "like-of" }} {{ $replys := index (index .Site.Data.webmentions $urlized) "in-reply-to" }} {{ $reposts := index (index .Site.Data.webmentions $urlized) "repost-of"}} {{ $mentions := index (index .Site.Data.webmentions $urlized) "mention-of"}} {{ if $likes }}

Likes

{{ range $i, $like := $likes }} {{ end }} {{ end }} {{ if $reposts }}

Reposts

{{ range $i, $repost := $reposts }} {{ $repost.author.name }} {{ end }} {{ end }} {{ if $mentions }}

Mentions

{{ end }} {{ if $replys }}

Comments and Replies

{{ range $i, $reply := $replys }}
{{ $reply.author.name }}
Comment by {{ $reply.author.name }} on {{ (time $reply.published).Local | dateFormat "Mon Jan 2, 2006" }}
{{ $reply.content.text | replaceRE "\\n" "

" | safeHTML | truncate 512 }}
{{ end }} {{ end }}
{{ end }} {{ end }}