diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0140999..021e630 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -23,3 +23,13 @@ jobs: PATREON_CLIENT_ID: ${{ secrets.PATREON_CLIENT_ID }} PATREON_CLIENT_SECRET: ${{ secrets.PATREON_CLIENT_SECRET }} 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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..1304e05 --- /dev/null +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 14376cc..f144340 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index 338a914..917e518 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xesite" -version = "2.0.1" +version = "2.1.0" authors = ["Christine Dodrill "] edition = "2018" build = "src/build.rs" diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..50aea0e --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +2.1.0 \ No newline at end of file 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) @@ -7,11 +8,13 @@ Christine Dodrill's Blog https://christine.website/blog Tech, philosophy and more + @APP https://github.com/Xe/site @for post in posts { + https://christine.website/@post.link @post.front_matter.title https://christine.website/@post.link - + @post.date.to_rfc2822()