Hallo

一个介绍你自己的单页主题。

hallo-hugoZola 移植版。

截图

原作

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

安装

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

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

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

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

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

theme = "hallo"

介绍

介绍文本取自 content/_index.md

模板

或者,可以通过以下配置选项从 templates/partials/introduction.html 包含它:

[extra]
hallo_use_introduction_template = true

选项

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

作者

给定的名称将用于 'I am ...' 文本。

默认值:Hallo

[extra.author]
name = "Hallo"

问候语

该字符串将用作问候语。

默认值:Hello!

[extra]
greeting = "Hello!"

iam

此变量定义 I am 文本,你可能想将其换成另一种语言。

默认值:I am

[extra]
iam = "I am"

链接

链接显示在介绍下方。它们使用 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.theme]
background = "#6FCDBD"
foreground = "#FFF" # 文本和肖像边框
hover = "#333" # 链接悬停