1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-02 10:41:36 +00:00

Rewrite feeds

This commit is contained in:
Cadence Fish 2020-02-18 13:39:20 +13:00
parent b10432aa38
commit 5201a6612b
No known key found for this signature in database
GPG key ID: 81015DF9AA8607E1
16 changed files with 118 additions and 65 deletions

View file

@ -0,0 +1,9 @@
mixin feed_link(name, urlPart, username, contentType)
span
a(rel="alternate" type=contentType href=`/u/${username}/${urlPart}.xml`)
= name
sup.validate-feed
-
let params = new URLSearchParams()
params.set("url", `${website_origin}/u/${username}/${urlPart}.xml`)
a(href="https://validator.w3.org/feed/check.cgi?"+params.toString() title="Validate this feed") v!