该模块于页尾生成和显示社交链接。
| Module | github.com/hbstack/footer/modules/socials |
|---|---|
| Repository | ⭐ Please consider giving a star if your like it. |
| Stars | |
| Version | |
| Used by | |
| Requirements | |
| License | |
| Usage | See how to use modules. |
| Parameter | Type | Default | Description |
|---|---|---|---|
socials | object | - | 由社交媒体映射到用户标识。 |
hugo.toml
1[params]
2 [params.hb]
3 [params.hb.footer]
4 [params.hb.footer.socials]
5 _color = false
6 github = 'hbstack'
7 gmail = 'mailto:user@example.com'
8 twitter = 'razonyang'
hugo.yaml
1params:
2 hb:
3 footer:
4 socials:
5 _color: false
6 github: hbstack
7 gmail: mailto:user@example.com
8 twitter: razonyang
hugo.json
1{
2 "params": {
3 "hb": {
4 "footer": {
5 "socials": {
6 "_color": false,
7 "github": "hbstack",
8 "gmail": "mailto:user@example.com",
9 "twitter": "razonyang"
10 }
11 }
12 }
13 }
14}
将
_color设置为false以禁用彩色图标。