Skip to content
โ† all posts

Setting up a Rust blog with Leptos

2026-06-07ยท1 min read

A quick note on how this site is laid out. It's one Cargo workspace with a few sub-crates, each with its own job.

Workspace layout

  • app/: UI & routing, shared by the server and the browser.
  • frontend/: the WASM entrypoint that triggers hydration in the browser.
  • server/: the Axum server that renders pages.

Per-page themes

Each post can have its own color via frontmatter:

---
title: "Title"
theme: ocean
layout: default
---

The post you're reading uses theme: ocean, which is why the accent is blue. The previous one used violet. No coding required, just change one line.

Content = markdown files

Want to add a post? Drop one .md file into the content/ folder. It shows up in the list automatically, gets its own page, and the reading time is computed for you.

Simple, fast, easy to maintain.