add content of posts to the RSS feed
This commit is contained in:
parent
a26d4ba425
commit
514220f079
|
@ -0,0 +1,7 @@
|
|||
# Changelog
|
||||
|
||||
New site features will be documented here.
|
||||
|
||||
## 2.1.0
|
||||
|
||||
- Blogpost bodies are now present in the RSS feed
|
|
@ -2629,7 +2629,7 @@ checksum = "d089681aa106a86fade1b0128fb5daf07d5867a509ab036d99988dec80429a57"
|
|||
|
||||
[[package]]
|
||||
name = "xesite"
|
||||
version = "2.0.1"
|
||||
version = "2.1.0"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"color-eyre",
|
||||
|
@ -2648,7 +2648,7 @@ dependencies = [
|
|||
"pfacts",
|
||||
"pretty_env_logger",
|
||||
"prometheus",
|
||||
"rand 0.7.3",
|
||||
"rand 0.6.5",
|
||||
"reqwest",
|
||||
"ructe",
|
||||
"serde",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "xesite"
|
||||
version = "2.0.1"
|
||||
version = "2.1.0"
|
||||
authors = ["Christine Dodrill <me@christine.website>"]
|
||||
edition = "2018"
|
||||
build = "src/build.rs"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
@use crate::APPLICATION_NAME as APP;
|
||||
@use crate::post::Post;
|
||||
|
||||
@(posts: Vec<Post>)
|
||||
|
@ -7,12 +8,14 @@
|
|||
<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>
|
||||
<title>@post.front_matter.title</title>
|
||||
<link>https://christine.website/@post.link</link>
|
||||
<description></description>
|
||||
<pubDate>@post.date.to_rfc2822()</pubDate>
|
||||
<content:encoded><![CDATA[ @Html(post.body_html) ]]></content:encoded>
|
||||
</item>
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue