blob: 45bd7ee294ba68b43c87bb3def07ac18a7274c87 (
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
75
76
77
78
|
# Mixedpaper for Hugo
Mixedpaper is a minimalist Hugo theme for writers and bloggers.
You can find screenshot at `images/` or a demo on <https://themes.gohugo.io/hugo-theme-mixedpaper/>.
## Feature
- Clean and minimalist
- SCSS styling
- Syntax highlighting
- Styled Archives
- Minimal vanilla js
## Installation
Navigate to the root directory of your Hugo site and clone this repository.
```
git submodule add https://github.com/wayjam/hugo-theme-mixedpaper.git themes/mixedpaper
```
Then, add the theme to the site configuration(`config.toml`).
Refer to the [Hugo docs](https://gohugo.io/getting-started/quick-start/) for more information.
## Upgrade
```
git submodule update --remote --merge
```
## Configuration
#### Hightlight
To enable theme-defined highlighting style, please set `pygmentsUseClasses = true` in `config.toml`
#### Archives
```toml
[[menu.main]]
name = "Archives"
identifier = "archives"
url = "/archives/"
```
#### Comments
Supported Disqus and Valine now.
```toml
disqusShortname = ""
```
OR
```toml
[params.comment]
appid = "your-appid"
appkey = "your-appkey"
placeholder = "enjoy~"
avatar = "mm"
pageSize = 10.0
visitor = false
recordIP = true
highlight = true
meta = "nick,mail"
requiredFields = "nick,mail"
```
#### More
Refer to `exampleSite/config.toml` for more example.
## License
Released under the [MIT License](https://github.com/wayjam/hugo-theme-mixedpaper/blob/master/LICENSE).
|