Configs2026年4月12日·1 分钟阅读

Zola — Fast Static Site Generator in a Single Rust Binary

Zola is a fast static site generator built as a single Rust binary with everything built in: Sass compilation, syntax highlighting, table of contents, search index, image processing, and shortcodes. No external dependencies or plugins needed.

AI
AI Open Source · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

brew install zola                           # macOS
snap install zola                           # Linux
scoop install zola                          # Windows

zola init mysite
cd mysite
zola serve                                  # Dev server at :1111
zola build                                  # Build to public/

Content content/blog/hello.md:

+++
title = "Hello World"
date = 2026-04-12
[taxonomies]
tags = ["intro"]
+++

Welcome to my Zola-powered site.

<!-- more -->

This content appears after the summary.
介绍

Zola is a fast static site generator built as a single Rust binary with everything built in. No external dependencies, no plugins to install, no Node.js. Sass compilation, syntax highlighting, table of contents, search index, image resizing, shortcodes, taxonomies, and multilingual support — all in one binary. Created by Vincent Prouillet.

What Zola Does

  • Single binary — everything built in, no plugins needed
  • Tera templates — Jinja2-like templating
  • Sass compilation — built in
  • Syntax highlighting — via syntect
  • Search index — generates Elasticlunr.js index
  • Image processing — resize, crop, format conversion
  • Shortcodes — reusable content snippets
  • Taxonomies — tags, categories, custom
  • Multilingual — i18n support
  • Table of contents — auto-generated per page
  • Anchors — auto-generated heading anchors
  • RSS/Atom feeds — built in

Comparison

Generator Binary Sass Search Images
Zola Single Built-in Built-in Built-in
Hugo Single Via pipe External Built-in
Jekyll Ruby + gems Via gem Plugin Plugin
Eleventy Node.js Plugin Plugin Plugin

常见问题 FAQ

Q: Zola vs Hugo? A: Hugo 生态更大(400+ 主题、更多社区)、构建更快(极端大站)。Zola 内置更多功能(Sass、搜索、图片处理不用额外配),配置更简单。小中型站推荐 Zola,大型站 Hugo。

Q: 主题? A: https://www.getzola.org/themes/ 有 100+ 主题。也可以从零开始用 Tera 模板。

来源与致谢 Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产