1
0
mirror of https://github.com/osmarks/website synced 2024-11-08 20:29:55 +00:00
website/templates/rss.pug

17 lines
533 B
Plaintext
Raw Normal View History

2020-03-08 17:13:14 +00:00
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()