blob: c925feda1c57d4d8e3488772e0bf4bbf9838c56b (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# Bingo
A Hugo theme inspired by [Classic](https://themes.gohugo.io/hugo-classic/) theme, [XMin](https://themes.gohugo.io/hugo-xmin/) theme, and [Er](https://themes.gohugo.io/er/) theme.
![screenshot](https://github.com/gundamew/hugo-bingo/blob/master/images/screenshot.png)
## Installation
Inside the folder of your Hugo site:
```
$ cd themes
$ git clone git@github.com:gundamew/hugo-bingo.git
```
For more information read the official guide: [Install and Use Themes](https://gohugo.io/themes/installing-and-using-themes/).
## Usage
### Use Google Analytics
This theme includes Hugo [internal template](https://gohugo.io/templates/internal/) for Google Analytics tracking. Provide your tracking ID in your configuration file to use it:
```toml
googleAnalytics = "UA-123-45"
```
### Use Gravatar
```toml
[params]
[params.gravatar]
email = "hugo@example.com"
```
### Custom navbar
```toml
[menu]
[[menu.main]]
identifier = "home"
name = "Home"
url = "/"
weight = 10
[[menu.main]]
identifier = "posts"
name = "Posts"
url = "/posts"
weight = 20
```
### Display social networks
You can put social network links on home page. It will sort by weight in ascending order, like navbar.
```toml
[params]
[[params.social]]
icon = "github"
url = "https://github.com/example"
weight = 10
[[params.social]]
icon = "twitter"
url = "https://twitter.com/example"
weight = 30
[[params.social]]
icon = "linkedin"
url = "https://www.linkedin.com/in/example"
weight = 20
```
Available social icons:
* `bitbucket`
* `dribbble`
* `facebook`
* `github`
* `gitlab`
* `instagram`
* `keybase`
* `linkedin`
* `medium`
* `plurk`
* `stackexchange`
* `stackoverflow`
* `twitter`
### Custom date format
```toml
[params]
dateFormat = "2006-01-02"
```
## Built With
* [Highlight.js](https://highlightjs.org/)
* [Simple Icons](https://simpleicons.org/)
## Contributing
Feel free to submit issues or pull requests.
## License
This theme is released under the MIT License. See [LICENSE](https://github.com/gundamew/hugo-bingo/blob/master/LICENSE).
|