Add support for 'mention-of' type webmentions

master
Kevin C. Coram 2020-01-01 14:15:16 -05:00
parent e3aefacd70
commit fcf897a797
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
1 changed files with 10 additions and 0 deletions

View File

@ -5,6 +5,7 @@
{{ $likes := index (index .Site.Data.webmentions $urlized) "like-of" }} {{ $likes := index (index .Site.Data.webmentions $urlized) "like-of" }}
{{ $replys := index (index .Site.Data.webmentions $urlized) "in-reply-to" }} {{ $replys := index (index .Site.Data.webmentions $urlized) "in-reply-to" }}
{{ $reposts := index (index .Site.Data.webmentions $urlized) "repost-of"}} {{ $reposts := index (index .Site.Data.webmentions $urlized) "repost-of"}}
{{ $mentions := index (index .Site.Data.webmentions $urlized) "mention-of"}}
{{ if $likes }} {{ if $likes }}
<h4>Likes</h4> <h4>Likes</h4>
{{ range $i, $like := $likes }} {{ range $i, $like := $likes }}
@ -20,6 +21,15 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if $mentions }}
<h4>Mentions</h4>
<ul>
{{ range $i, $mention := $mentions }}
<li><a href="{{$mention.url}}">{{$mention.url}}</a></li>
{{ end }}
</ul>
{{ end }}
{{ if $replys }} {{ if $replys }}
<h4>Comments and Replies</h4> <h4>Comments and Replies</h4>
{{ range $i, $reply := $replys }} {{ range $i, $reply := $replys }}