This module display a content panel on single pages, which includes translations, comments and repo buttons.
Module | github.com/hbstack/content-panel |
---|---|
Repository | ⭐ Please consider giving a star if your like it. |
Stars | |
Version | |
Used by | |
Requirements | |
License | |
Usage | See how to use modules. |
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
bottom | string | - | 20px | The bottom property. |
repo | object | - | - | The repository settings. |
repo.branch | string | - | main | The branch name. |
repo.repo | string | Y | - | The repo name, i.e. user/name . |
repo.service | string | Y | - | Git service provider: github , gitlab , gitee , codeberg . |
repo.service_baseurl | string | - | - | Self-hosted Git service URL. |
repo.subpath | string | - | - | The content subpath, i.e. exampleSite . |
hugo.toml
1[params]
2 [params.hb]
3 [params.hb.content_panel]
4 bottom = '20px'
5 [params.hb.content_panel.repo]
6 branch = 'main'
7 repo = 'user/name'
8 service = 'github'
9 subpath = 'exampleSite'
hugo.yaml
1params:
2 hb:
3 content_panel:
4 bottom: 20px
5 repo:
6 branch: main
7 repo: user/name
8 service: github
9 subpath: exampleSite
hugo.json
1{
2 "params": {
3 "hb": {
4 "content_panel": {
5 "bottom": "20px",
6 "repo": {
7 "branch": "main",
8 "repo": "user/name",
9 "service": "github",
10 "subpath": "exampleSite"
11 }
12 }
13 }
14 }
15}