mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-17 03:28:49 +00:00
Disable feed validation, add setting to enable
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
mixin feed_link(name, urlPart, username, contentType)
|
||||
mixin feed_link(name, urlPart, username, contentType, display_feed_validation_buttons)
|
||||
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!
|
||||
if display_feed_validation_buttons
|
||||
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!
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//- Needs user, url, constants, website_origin
|
||||
//- Needs user, url, constants, website_origin, display_feed_validation_buttons
|
||||
|
||||
include includes/timeline_page.pug
|
||||
include includes/next_page_button.pug
|
||||
@@ -44,8 +44,8 @@ html
|
||||
div.profile-counter #[span(data-numberformat=user.followedBy).count #{numberFormat(user.followedBy)}] followed by
|
||||
div.links
|
||||
if constants.settings.rss_enabled
|
||||
+feed_link("RSS", "rss", user.data.username, "application/rss+xml")
|
||||
+feed_link("Atom", "atom", user.data.username, "application/atom+xml")
|
||||
+feed_link("RSS", "rss", user.data.username, "application/rss+xml", display_feed_validation_buttons)
|
||||
+feed_link("Atom", "atom", user.data.username, "application/atom+xml", display_feed_validation_buttons)
|
||||
a(rel="noreferrer noopener" href=`https://www.instagram.com/${user.data.username}`) instagram.com
|
||||
|
||||
- const hasPosts = !user.data.is_private && user.timeline.pages.length && user.timeline.pages[0].length
|
||||
|
||||
Reference in New Issue
Block a user