tanuki mascot
Tanuki

一个自以为是的 Zola 主题,适用于文档、书籍和博客。
美观、易用且设计周到。

Zola Catppuccin License

在线演示文档书籍示例博客示例


Tanuki 主题

特性

安装

cd your-zola-site
git clone https://github.com/raskell-io/tanuki themes/tanuki

或者作为 git 子模块:

git submodule add https://github.com/raskell-io/tanuki themes/tanuki

快速开始

文档模式

base_url = "https://docs.example.com"
title = "My Project Docs"
theme = "tanuki"
build_search_index = true

[markdown]
highlight_code = true
highlight_theme = "css"

[extra]
mode = "docs"
github = "https://github.com/you/project"

# 可选:版本选择器
[extra.versions]
current = "2.0.0"
list = [
    { version = "2.0.0", url = "/", label = "latest" },
    { version = "1.0.0", url = "/v1/" },
]

书籍模式

base_url = "https://book.example.com"
title = "The Complete Guide"
theme = "tanuki"
build_search_index = true

[markdown]
highlight_code = true
highlight_theme = "css"

[extra]
mode = "book"
github = "https://github.com/you/book"

博客模式

base_url = "https://blog.example.com"
title = "My Blog"
theme = "tanuki"
generate_feeds = true

taxonomies = [
    { name = "tags", feed = true },
]

[markdown]
highlight_code = true
highlight_theme = "css"

[extra]
mode = "blog"

[extra.hero]
title = "Welcome to my blog"
subtitle = "Thoughts on code and craft"

[[extra.nav]]
name = "Blog"
url = "/blog/"

[[extra.nav]]
name = "About"
url = "/about/"

键盘快捷键

按键动作
/ 上一页 / 下一页
/打开搜索
Esc关闭覆盖层

浏览器支持

现代浏览器(Chrome 88+, Firefox 78+, Safari 14+, Edge 88+)

致谢

许可证

MIT


Made with care by raskell.io