Live: decastro.dev · ae2.rs
Public repository for my blog, fully written in Rust. The server is built with Axum, templates are rendered with Maud, and styles are generated with Tailwind during build.rs.
- Axum server with Maud templates
- Markdown content rendering
- Syntax highlighting via syntect
- Embedded static assets
- Tailwind CSS build pipeline
main.rs: server entry point and routingsrc/: library crate with page handlers and templatesstyles/index.css: Tailwind entrypoint (compiled tobuild/style/index.css)build/: static assets served at runtime (e.g.,build/imgandbuild/style)content/: blog content source files
cargo runThen open http://0.0.0.0:3000.
Use the helper script for automatic restarts while you edit Rust, content, styles, or assets:
./scripts/dev.shIf cargo-watch is installed, the script uses it. Otherwise it falls back to a small polling watcher.
cargo buildThis runs build.rs, which generates the minified Tailwind CSS using the binary in vendor/tailwind/.
cargo testcargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warningsdocker compose up --buildMIT. See LICENSE.
- View transitions support for the navbar
- Caching headers
- About section for the blog itself
- Notes (tiny posts) support
- Analytics