Hephaestus

一个极简的深色 Zola 主题。

hugo-theme-hephaestusZola 移植版。

截图

原作

这是 Hugo 主题 hugo-theme-hephaestus (许可证) 的移植版。

安装

安装此主题最简单的方法是克隆它...

git clone https://github.com/janbaudisch/zola-hephaestus.git themes/hephaestus

... 或者将其用作子模块。

git submodule add https://github.com/janbaudisch/zola-hephaestus.git themes/hephaestus

无论哪种方式,你都必须在 config.toml 中启用该主题。

theme = "hephaestus"

选项

有关示例配置,请参阅 config.toml

链接

链接显示在页脚中。它们使用 Font Awesome 样式化,你可以选择图标集(默认为 brands)。

[extra]
links = [
    { title = "E-Mail", url = "mailto:mail@example.org", iconset = "fas", icon = "envelope" },
    { title = "GitHub", url = "https://github.com", icon = "github" },
    { title = "Twitter", url = "https://twitter.com", icon = "twitter" }
]

菜单

菜单显示在顶部。

[[extra.menu]]
name = "Posts"
url = "/posts"

[[extra.menu]]
name = "Tags"
url = "/tags"

日期格式

指定如何显示日期。格式在 这里 描述。

默认值:%Y-%m-%d

[extra]
date_format = "%Y-%m-%d"