mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-02 10:41:36 +00:00
Rewrite feeds
This commit is contained in:
parent
b10432aa38
commit
5201a6612b
16 changed files with 118 additions and 65 deletions
9
src/site/pug/includes/feed_link.pug
Normal file
9
src/site/pug/includes/feed_link.pug
Normal 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!
|
||||
Loading…
Add table
Add a link
Reference in a new issue