Added user specific RSS and ATOM feeds and updated the EJS templates to

add them by default to the user's header section
This commit is contained in:
2025-07-30 01:28:23 +01:00
parent 72316094e4
commit 0cc319a702
8 changed files with 83 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ export function unix_time_to_rss_date(unix_time) {
export function unix_time_to_atom_date(unix_time) {
const { fromUnixTime, format, getUnixTime } = require("date-fns") // A date utility library
let date = fromUnixTime(unix_time)
let formatted_date = format(date, "yyyy-MM-dd\\THH:mm:ss\\Z")
let formatted_date = format(date, "yyyy-MM-dd'T'HH:mm:ss'Z'")
return `${formatted_date}`
}
// This function accepts a list of strings eg ["string1","string2,"string3"] (any length)