Seje2

截图

演示 简体中文

安装

首先将此主题下载到你的 themes 目录:

cd themes
git clone https://github.com/eatradish/Seje2

然后在你的 config.toml 中启用它:

theme = "Seje2"

此主题需要你的索引部分(content/_index.md)分页才能工作:

paginate_by = 5

因此,文章应直接位于 content 文件夹下。

并且需要你的索引部分(about/_index.md)分页才能工作:

title = "..."

[extra]
year = 2019
month = 11
day = 3

选项

顶部菜单

extra 中设置一个键为 seje2_menu_links 的字段:

seje2_menu_links = [
    {url = "$BASE_URL", name = "Home"},
    {url = "$BASE_URL/categories", name = "Categories"},
    {url = "$BASE_URL/tags", name = "Tags"},
    {url = "https://google.com", name = "Google"},
]

如果你在 url 中放入 $BASE_URL,它会自动被替换为实际的站点 URL。

MathJax Latex 支持

extra 中设置一个布尔键 seje_mathjax

seje_mathjax = true

许可证

extra 中设置一个键为 license 的字段:

license = "@ 宇宙眼镜人"