1
0
mirror of https://github.com/osmarks/website synced 2024-06-18 11:19:58 +00:00
website/templates/rss.pug
osmarks 0b19f8c578 Actually remember to publish changes
Updates, caching mechanism, new article, changes to stack and problem-solving, GUIHacker betterness, UUIDs on RSS
2023-02-14 22:49:48 +00:00

17 lines
533 B
Plaintext

doctype xml
rss(version='2.0')
channel
title= name
description= siteDescription
link= `https://${domain}/`
lastBuildDate= new Date().toUTCString()
pubDate= lastUpdate.toUTCString()
each item in items
item
title= item.title
description= item.description
link= `https://${domain}/${item.slug}`
guid= item.guid
if item.updated
pubDate= item.updated.toDate().toUTCString()