blob: 9efc32d7863206100b7481cee92b2ba35faaf225 (
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
|
# hugo-fabric
Hugo Fabric Theme, forked from https://github.com/wd/hexo-fabric. You can visit live demo at https://wdicc.com.
# Installation
First clone this repository in the `themes/` directory:
```
$ cd themes/
$ git clone https://github.com/wd/hugo-fabric
```
Second, specify `hugo-fabric` as your default theme in the config.toml file. Just add the line
```
theme = "hugo-fabric"
```
# Theme settings
Put settings below into your config.toml.
```
[params]
author = "wd"
[params.theme]
subtitle = "happy every day"
post_type = "page" # For archive
archive_post_type = "archives"
# social account
github_user = "wd"
twitter_user = "wd"
disqus_shortname = "wdicc"
# post sharing
facebook_like = true
twitter_tweet_button = true
google_plus_one = true
google_plus_one_size = "midum"
addthis_profile_id = "wd"
```
# Archive support
Create a new file `hugo new archives.md`, and edit this file, add the following line in front matter.
```
type = "archives"
```
# Others
* https://github.com/wd/hexo2hugo
* https://discuss.gohugo.io/t/blog-archives-page/2577/17
|