1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Fix: sort webmentions by date

This commit is contained in:
Rohan Kumar 2022-05-29 20:37:18 -07:00
parent 5e732189e0
commit 65306b7867
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -7,7 +7,7 @@
{{ $url1 := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $target -}}
{{ $url2 := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $oldTarget -}}
{{ $webmentions := (getJSON $url1) | append (getJSON $url2) -}}
{{ range $webmentions -}}
{{ range sort $webmentions "created_at" -}}
{{ $webmention := . -}}
{{ if (eq $webmention.type "like") -}}
<div itemprop="potentialAction" itemscope itemtype="https://schema.org/LikeAction" class="u-like h-cite">