{{ $webmentions := index .Site.Data.webmentions .RelPermalink }} {{ $likes := slice }} {{ $replies := slice }} {{ $mentions := slice }} {{ with $webmentions }} {{ range . }} {{ if eq .type "like-of" }} {{ $likes = $likes | append . }} {{ else if eq .type "in-reply-to" }} {{ $replies = $replies | append . }} {{ else if eq .type "mention-of" }} {{ $mentions = $mentions | append . }} {{ end }} {{ end }} {{ end }}