1
0
dwelling-home/web/templates/rss.pug

23 lines
898 B
Plaintext
Executable File

:go:func RSS(host, author string, posts []mindflow.Post, r *http.Request)
doctype xml
rss(version='2.0')
channel
title Arav's dwelling
description Updates on my websites and infrastructure.
language en-gb
link= host
each post in posts
item
title= post.Title
category= post.Category
guid!= `${strings.ToLower(post.Category)}-${post.Date.UTC().Format("20060102-150405")}`
pubDate= util.ToClientTimezone(post.Date, r).Format("20060102-150405")
link!= `${host}/mindflow#${strings.ToLower(post.Category)}-${post.Date.UTC().Format("20060102-150405")}`
author!= author
description
| <![CDATA[
each line in strings.Split(post.Body, "\n")
p!= line
| ]]>