I am using the Dioxus which is a full stack library in Rust.
The RSS feed is generated using the rss
crate.
For the Rustacean out there,
this personal site and blog is ready for you to fork and use.
You can add API endpoints with axum
and sqlx
.
The license for the code is MIT, and for the content is CC-BY-NC-SA.
-
Install Dioxus:
cargo install dioxus-cli
-
Install
npm
: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm -
Install
tailwindcss
: https://tailwindcss.com/docs/installation -
Run the following command in the root of the project to start the tailwind CSS compiler:
npx tailwindcss -i ./input.css -o ./public/tailwind.css --watch
Run the following command in the root of the project to start the Dioxus dev server:
dx serve --hot-reload
Open the browser to http://localhost:8080
Once you have a blog post in Markdown, you can convert to HTML using Pandoc:
pandoc sample_readme.md -t html -o sample_readme.html
To generate the RSS feed for the blog,
you'll need to run with cargo run
.
This will crate a file at public/feed.xml
.