The header module is a universal top app bar that ships with some useful sub modules, such as social links, light/dark mode toggle and language picker.
| Module Path | Version |
|---|---|
github.com/razonyang/hb/modules/header |
| Parameter | Type | Default | Description |
|---|---|---|---|
brand | string | Site’s title | The brand text. |
theme | string | - | Available themes: classic. |
full_width | boolean | true | Whether to take full width. |
sticky | boolean | true | Whether to sticky the header. |
hugo.toml
1[params]
2 [params.hb]
3 [params.hb.header]
4 brand = ''
5 full_width = true
6 sticky = true
7 theme = ''
hugo.yaml
1params:
2 hb:
3 header:
4 brand: ""
5 full_width: true
6 sticky: true
7 theme: ""
hugo.json
1{
2 "params": {
3 "hb": {
4 "header": {
5 "brand": "",
6 "full_width": true,
7 "sticky": true,
8 "theme": ""
9 }
10 }
11 }
12}