blob: bb609c71e7322a669d9cfc8bfd788064c03e44b8 (
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
|
## Change color scheme
(From *theme*'s root directory) Go to `assets/scss/journal.scss`.
And modify the color value in the first line.
```
$color-accent: #1976d2;
```
Then re-generate the website.
You can see the new color scheme now.
## Add comment area
### Gitalk
Edit your `config.toml` in the hugo website's root directory.
Add the following line to the section `[params]`
```
enableGitalk = true
```
Then add following lines behind:
```
[params.gitalk]
owner = "user"
repo = "repo name"
client_id = "your client id"
client_secret = "your client secret"
```
(Modify to suit your condition.)
### Disqus
Hugo originally supports Disqus, and I added the disqus to the theme.
But due to my network environment, I haven't had it tested.
To add a disqus comment service, please add a line to `config.toml` in the root directory:
```
disqusShortname = "Your disqus short name."
```
If some bugs happens, please feel free to open an issue or PR.
### Other comment service
Welcome to open an issue or Pull Request for adding a new comment service.
If I'm free then, I will add it. :P
|