smol
1.0.0
Hugo 的最小等宽博客主题,尊重您的隐私并轻松占用您的带宽。可以在 https://smol-demo.morph.sh 找到演示。
smol 基于 Vimux 创建的 Blank。
在您的 Hugo 站点themes
目录中,运行:
git clone https://github.com/colorchestra/smol
接下来,打开 Hugo 站点底部的config.toml
并确保主题选项设置为smol
。
theme = "smol"
最后,将以下行添加到config.toml
中以设置站点参数,并在需要时使用页眉和页脚部分中的所有菜单条目。
# Parameters
[params]
subtitle = "Your blog subtitle goes here!"
dateFmt = "02.01.2006 15:04"
# Header
[menu]
[[menu.main]]
identifier = "posts"
name = "Posts"
url = "/posts/"
weight = 1
[[menu.main]]
identifier = "categories"
name = "Categories"
url = "/categories/"
weight = 2
[[menu.main]]
identifier = "tags"
name = "Tags"
url = "/tags/"
weight = 3
# Footer
[[menu.footer]]
name = "Github"
url = "https://github.com/example"
weight = 1
[[menu.footer]]
name = "Mastodon"
url = "https://example.com/@user"
weight = 2
[[menu.footer]]
name = "Imprint"
url = "/imprint"
weight = 3
有关更多信息,请阅读 Hugo 官方快速入门指南。
在 config.toml 中添加copyright = "Your text here"
-以更改页脚中的版权声明。
您可以通过添加标题来向图像添加标题(技术上使用<figcaption>
HTML 标记),如下所示: ![Alt text here](/path/to/image.png "Put your caption here!")
您是否发现了错误或对新功能有了想法?请随时使用问题跟踪器让我知道。或者直接提出拉取请求。
该主题是在 MIT 许可下发布的。