zola
Generate static websites and blogs
TLDR
Create the directory structure used by Zola at the given directory
Build the whole site in the public directory after deleting it
Build the whole site into a different directory
Build and serve the site using a local server (default is 127.0.0.1:1111)
Build all pages just like the build command would, but without writing any of the results to disk
SYNOPSIS
zola <command> [options]
PARAMETERS
init
Initialize a new Zola project.
build
Build the site from the content and templates.
serve
Build the site and start a local development server with live reloading.
check
Check the site for broken links and other issues.
--base-url <URL>
Set the base URL for the site. Overrides the value in the config file.
--drafts
Include drafts when building or serving the site.
DESCRIPTION
Zola is a fast, modern static site generator written in Rust. It takes directories of content, applies templates, and generates static HTML files ready to be served. It's particularly well-suited for creating blogs, documentation sites, and simple websites. Zola supports themes, Sass compilation, syntax highlighting, and many other features. Unlike some other static site generators, Zola aims to provide a batteries-included experience with no need for external plugins.
<B>CONFIGURATION</B>
Zola projects are configured via a `config.toml` file. This file controls various aspects of the site, such as the title, description, base URL, and theme.
<B>TEMPLATES</B>
Zola uses the Tera templating engine, which is similar to Jinja2. Templates are used to define the structure of the site and how content is displayed.
<B>CONTENT</B>
Content is written in Markdown or HTML and placed in the `content` directory. Zola automatically generates pages from these files.
HISTORY
Zola was created as a modern alternative to other static site generators. Its use of Rust offers performance benefits and memory safety. It has gained popularity for its ease of use and comprehensive feature set.