blob: 44634887c7fdb3b31e2960554a3f9f394e7765fc (
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
|
# Seje2

[Demo](https://eatradish.github.io/Seje2)
## Contents
- [Installation](#installation)
- [Options](#options)
- [Top menu](#top-menu)
- ["About" page](#"About"-page)
## Installation
First download this theme to your `themes` directory:
```bash
cd themes
git clone https://github.com/eatradish/Seje2
```
and then enable it in your `config.toml`:
```toml
theme = "Seje2"
```
This theme requires your index section (`content/_index.md`) to be paginated to work:
```toml
paginate_by = 5
```
The posts should therefore be in directly under the `content` folder.
and requires your index section (`about/_index.md`) to be paginated to work:
```toml
title = "..."
[extra]
year = 2019
month = 11
day = 3
```
## Options
### Top-menu
Set a field in `extra` with a key of `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"},
]
```
If you put `$BASE_URL` in a url, it will automatically be replaced by the actual
site URL.
### License
Set a field in `extra` with a key of `license`:
```toml
license = "@ 宇宙眼睛人"
```
|