aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2020-10-25 16:29:02 -0400
committerGitHub <noreply@github.com>2020-10-25 16:29:02 -0400
commit8af9835fad32f04b275e9c35644ea48970e5c034 (patch)
treec28c13197f0bc664289e5e20a1855e332b464235 /templates
parent9cd35f4ba52e314104736a938434861f68b174ed (diff)
downloadxesite-2.1.0.tar.xz
xesite-2.1.0.zip
Article bodies in rss (#243)v2.1.0
* add content of posts to the RSS feed * make RSS pass
Diffstat (limited to 'templates')
-rw-r--r--templates/blog_rss.rs.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/blog_rss.rs.xml b/templates/blog_rss.rs.xml
index 02b5ce0..15e3c82 100644
--- a/templates/blog_rss.rs.xml
+++ b/templates/blog_rss.rs.xml
@@ -1,3 +1,4 @@
+@use crate::APPLICATION_NAME as APP;
@use crate::post::Post;
@(posts: Vec<Post>)
@@ -7,11 +8,13 @@
<title>Christine Dodrill's Blog</title>
<link>https://christine.website/blog</link>
<description>Tech, philosophy and more</description>
+ <generator>@APP https://github.com/Xe/site</generator>
@for post in posts {
<item>
+ <guid>https://christine.website/@post.link</guid>
<title>@post.front_matter.title</title>
<link>https://christine.website/@post.link</link>
- <description></description>
+ <description><![CDATA[@Html(post.body_html)]]></description>
<pubDate>@post.date.to_rfc2822()</pubDate>
</item>