forked from cadey/xesite
Article bodies in rss (#243)
* add content of posts to the RSS feed * make RSS pass
This commit is contained in:
parent
9cd35f4ba5
commit
8af9835fad
|
@ -23,3 +23,13 @@ jobs:
|
||||||
PATREON_CLIENT_ID: ${{ secrets.PATREON_CLIENT_ID }}
|
PATREON_CLIENT_ID: ${{ secrets.PATREON_CLIENT_ID }}
|
||||||
PATREON_CLIENT_SECRET: ${{ secrets.PATREON_CLIENT_SECRET }}
|
PATREON_CLIENT_SECRET: ${{ secrets.PATREON_CLIENT_SECRET }}
|
||||||
PATREON_REFRESH_TOKEN: ${{ secrets.PATREON_REFRESH_TOKEN }}
|
PATREON_REFRESH_TOKEN: ${{ secrets.PATREON_REFRESH_TOKEN }}
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Releases via Palisade
|
||||||
|
run: |
|
||||||
|
docker run --rm --name palisade -v $(pwd):/workspace -e GITHUB_TOKEN -e GITHUB_REF -e GITHUB_REPOSITORY --workdir /workspace ghcr.io/xe/palisade palisade github-action
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.CR_PAT }}
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Changelog
|
||||||
|
|
||||||
|
New site features will be documented here.
|
||||||
|
|
||||||
|
## 2.1.0
|
||||||
|
|
||||||
|
- Blogpost bodies are now present in the RSS feed
|
||||||
|
|
||||||
|
## 2.0.1
|
||||||
|
|
||||||
|
Custom render RSS/Atom feeds
|
||||||
|
|
||||||
|
## 2.0.0
|
||||||
|
|
||||||
|
Complete site rewrite in Rust
|
|
@ -2629,7 +2629,7 @@ checksum = "d089681aa106a86fade1b0128fb5daf07d5867a509ab036d99988dec80429a57"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "xesite"
|
name = "xesite"
|
||||||
version = "2.0.1"
|
version = "2.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"color-eyre",
|
"color-eyre",
|
||||||
|
@ -2648,7 +2648,7 @@ dependencies = [
|
||||||
"pfacts",
|
"pfacts",
|
||||||
"pretty_env_logger",
|
"pretty_env_logger",
|
||||||
"prometheus",
|
"prometheus",
|
||||||
"rand 0.7.3",
|
"rand 0.6.5",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"ructe",
|
"ructe",
|
||||||
"serde",
|
"serde",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "xesite"
|
name = "xesite"
|
||||||
version = "2.0.1"
|
version = "2.1.0"
|
||||||
authors = ["Christine Dodrill <me@christine.website>"]
|
authors = ["Christine Dodrill <me@christine.website>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "src/build.rs"
|
build = "src/build.rs"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
@use crate::APPLICATION_NAME as APP;
|
||||||
@use crate::post::Post;
|
@use crate::post::Post;
|
||||||
|
|
||||||
@(posts: Vec<Post>)
|
@(posts: Vec<Post>)
|
||||||
|
@ -7,11 +8,13 @@
|
||||||
<title>Christine Dodrill's Blog</title>
|
<title>Christine Dodrill's Blog</title>
|
||||||
<link>https://christine.website/blog</link>
|
<link>https://christine.website/blog</link>
|
||||||
<description>Tech, philosophy and more</description>
|
<description>Tech, philosophy and more</description>
|
||||||
|
<generator>@APP https://github.com/Xe/site</generator>
|
||||||
@for post in posts {
|
@for post in posts {
|
||||||
<item>
|
<item>
|
||||||
|
<guid>https://christine.website/@post.link</guid>
|
||||||
<title>@post.front_matter.title</title>
|
<title>@post.front_matter.title</title>
|
||||||
<link>https://christine.website/@post.link</link>
|
<link>https://christine.website/@post.link</link>
|
||||||
<description></description>
|
<description><![CDATA[@Html(post.body_html)]]></description>
|
||||||
<pubDate>@post.date.to_rfc2822()</pubDate>
|
<pubDate>@post.date.to_rfc2822()</pubDate>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue