blob: aac8f9d10b9ecfb34a878b6bcfa12b54372724ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# 寫嘢

[Demo](https://eatradish.github.io/Seje2)
## Contents
- [Installation](#installation)
- [Options](#options)
- [Top menu](#top-menu)
- ["About" page](#"About"-page)
## 安装
确保使用 zola init myblog 创建了你的 zola 博客文件夹,然后将 Seje2 克隆到本地 themes 文件下:
```bash
cd themes
git clone https://github.com/eatradish/Seje2
```
之后在 `config.toml` 文件中指定 theme 为 Seje2:
```toml
theme = "Seje2"
```
之后需要你修改 content 的 index 文件 (`content/_index.md`) 来设置在首页中一页能显示多少篇文章:
```toml
paginate_by = 5
```
以及,在你的关于页面 (`about/_index.md`) 中,添加以下行:
```toml
title = "..."
[extra]
year = 2019
month = 11
day = 3
```
## 选项
### 菜单栏
要修改菜单栏的内容,请修改 `config.toml` extra 中 `seje2_menu_links` 的内容,像下面这样:
```toml
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"},
]
```
这个 BASE_URL 是你在 `config.toml` 中 `base_url` 字段的内容,像 demo 中就是:
```toml
base_url = "https://blog.miraclemilk.me/Seje2"
```
### 文章版权
可以在 `config.toml` 的 `extra` 中修改 `License 字段的内容`,来设置你的文章版权显示:
```toml
license = "@ 宇宙眼睛人"
```
这会在博客的页尾显示你的文章版权,留空就可以不显示。
|