aboutsummaryrefslogtreecommitdiffstats
path: root/views/rss_feed.pug
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-07-06 13:34:45 +0000
committerterminaldweller <thabogre@gmail.com>2022-07-06 13:34:45 +0000
commitda98e1dee68e421bdd7cfcf332c43a1f94a43a30 (patch)
tree792f70ee92e096d69d9989481a736ff3af0590c7 /views/rss_feed.pug
parentwas using node image for self-signed certificates (diff)
parentfix for atom (diff)
downloadblog-da98e1dee68e421bdd7cfcf332c43a1f94a43a30.tar.gz
blog-da98e1dee68e421bdd7cfcf332c43a1f94a43a30.zip
Merge branch 'rss'
Diffstat (limited to 'views/rss_feed.pug')
-rw-r--r--views/rss_feed.pug21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/rss_feed.pug b/views/rss_feed.pug
new file mode 100644
index 0000000..e75225d
--- /dev/null
+++ b/views/rss_feed.pug
@@ -0,0 +1,21 @@
+doctype xml
+rss(version='2.0', xmlns:atom='<a href="http://www.w3.org/2005/Atom" rel="nofollow">http://www.w3.org/2005/Atom</a>')
+ channel
+ title deviblog
+ link <a href="https://blog.terminaldweller.com" rel="nofollow">https://blog.terminaldweller.com</a>
+ atom:link(href='<a href="https://blog.terminaldweller.com/feed/rss" rel="nofollow">https://blog.terminaldweller.com/feed/rss</a>', rel='self', type='application/rss+xml')
+ description I talk about software here.
+ language en-US
+ if posts.length
+ lastBuildDate= new Date(posts[0].lastUpdatedAt).toUTCString()
+ each post in posts
+ item
+ title= post.title
+ link <a href="https://blog.terminaldweller.com/blog/#{post.slug}" rel="nofollow">https://terminaldweller.com/blog/#{post.slug}</a>
+ description
+ | <![CDATA[
+ | !{post.teaser}
+ p: a(href='<a href="https://blog.terminaldweller.com/blog/#{post.slug} rel="nofollow">https://blog.terminaldweller.com/blog/#{post.slug}</a>') 'Read more &raquo;'
+ | ]]>
+ pubDate= new Date(post.lastUpdatedAt).toUTCString()
+ guid(isPermaLink='false') <a href="https://blog.terminaldweller.com/blog/#{post.slug}" rel="nofollow">https://blog.terminaldweller.com/blog/#{post.slug}</a>