From 75e5102ffd532a50604f6a95864fa6a13c32c235 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 5 Mar 2022 01:29:05 +0330 Subject: rss, WIP --- views/rss_feed.pug | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 views/rss_feed.pug (limited to 'views/rss_feed.pug') diff --git a/views/rss_feed.pug b/views/rss_feed.pug new file mode 100644 index 0000000..9bdd9bd --- /dev/null +++ b/views/rss_feed.pug @@ -0,0 +1,21 @@ +doctype xml +rss(version='2.0', xmlns:atom='http://www.w3.org/2005/Atom') + channel + title DevSmash + link http://devsmash.com + atom:link(href='http://devsmash.com/feed/rss', rel='self', type='application/rss+xml') + description Developers talking about stuff that developers like to talk about. + language en-US + if posts.length + lastBuildDate= new Date(posts[0].publishedAt).toUTCString() + each post in posts + item + title= post.title + link http://devsmash.com/blog/#{post.slug} + description + | http://devsmash.com/blog/#{post.slug}')!= 'Read more »' + | ]]> + pubDate= new Date(post.publishedAt).toUTCString() + guid(isPermaLink='false') Date: Tue, 5 Jul 2022 20:19:16 +0430 Subject: WIP, adding rss to the blog --- views/rss_feed.pug | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'views/rss_feed.pug') diff --git a/views/rss_feed.pug b/views/rss_feed.pug index 9bdd9bd..0ae2b74 100644 --- a/views/rss_feed.pug +++ b/views/rss_feed.pug @@ -1,21 +1,21 @@ doctype xml rss(version='2.0', xmlns:atom='http://www.w3.org/2005/Atom') channel - title DevSmash - link http://devsmash.com - atom:link(href='http://devsmash.com/feed/rss', rel='self', type='application/rss+xml') - description Developers talking about stuff that developers like to talk about. + title deviblog + link https://blog.terminaldweller.com + atom:link(href='https://blog.terminaldweller.com/feed/rss', rel='self', type='application/rss+xml') + description I talk about software here. language en-US if posts.length - lastBuildDate= new Date(posts[0].publishedAt).toUTCString() + lastBuildDate= new Date(posts[0].lastUpdatedAt).toUTCString() each post in posts item title= post.title - link http://devsmash.com/blog/#{post.slug} + link https://terminaldweller.com/blog/#{post.slug} description | http://devsmash.com/blog/#{post.slug}')!= 'Read more »' + p: a(href='https://blog.terminaldweller.com/blog/#{post.slug}') 'Read more »' | ]]> - pubDate= new Date(post.publishedAt).toUTCString() - guid(isPermaLink='false') Date: Wed, 6 Jul 2022 15:54:39 +0430 Subject: WIP, we now have to fix the pug template which is not working --- views/rss_feed.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/rss_feed.pug') diff --git a/views/rss_feed.pug b/views/rss_feed.pug index 0ae2b74..e75225d 100644 --- a/views/rss_feed.pug +++ b/views/rss_feed.pug @@ -18,4 +18,4 @@ rss(version='2.0', xmlns:atom='https://blog.terminaldweller.com/blog/#{post.slug}') 'Read more »' | ]]> pubDate= new Date(post.lastUpdatedAt).toUTCString() - guid(isPermaLink='false') https://blog.terminaldweller.com/blog/#{post.slug} -- cgit v1.2.3