Hugo 主题
smol
一个极简的、等宽字体的 Hugo 博客主题,尊重您的隐私,并易于使用您的带宽。演示可以在 https://smol-demo.morph.sh 找到。
smol 基于 Vimux 创建的 Blank。
特性
- 没有 JavaScript
- 没有任何 Google 间谍软件或跟踪
- 没有其他外部依赖项,嵌入字体或评论部分
- 支持暗黑模式(取决于您的操作系统设置)
安装
在您的 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 = "您的文本在这里"
以更改页脚中的版权声明。
图片标题
您可以通过添加标题来向图像添加标题(技术上使用 <figcaption>
HTML 标签),如下所示: 
贡献
您是否发现了一个错误或者对新功能有想法?请随时使用问题跟踪器告诉我。或者直接提出拉取请求。
许可证
此主题根据 MIT 许可证发布。