Add support for 'mention-of' type webmentions
parent
e3aefacd70
commit
fcf897a797
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue