Static Website Generators
Recipe | Crates | Categories |
---|---|---|
Create a simple website using a static website generator |
Create a simple website using a static website generator
zola is not a crate in crates.io / doc.rs
Zola⮳ is a fast static site generator in a single binary with everything built-in.
Once Zola is installed, create a new site:
cargo install zola
zola init my_site
cd my_site
Open the config.toml
file. Here's a basic example:
base_url = "https://example.com"
title = "My Zola Site"
description = "A simple site powered by Zola"
# other configuration options...
Create a first post in content/blog/first-post.md
with the following content:
+++
title = "First Post"
date = 2025-01-10
+++
This is my first blog post using Zola!
zola build
zola serve
You can further customize your site by editing the templates in the templates directory and adding your styles in the static directory.
Themes for zola
AdiDoks is a modern documentation theme.
[static_website_generators: write (P1)](https://github.com/john-cd/rust_howto/issues/519)