Become a backer or sponsor to support our work.
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. |
comments | boolean | - | true | When true disable comments globally. |
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 comments = true
6 [params.hb.content_panel.repo]
7 branch = 'main'
8 repo = 'user/name'
9 service = 'github'
10 subpath = 'exampleSite'
hugo.yaml
1params:
2 hb:
3 content_panel:
4 bottom: 20px
5 comments: true
6 repo:
7 branch: main
8 repo: user/name
9 service: github
10 subpath: exampleSite
hugo.json
1{
2 "params": {
3 "hb": {
4 "content_panel": {
5 "bottom": "20px",
6 "comments": true,
7 "repo": {
8 "branch": "main",
9 "repo": "user/name",
10 "service": "github",
11 "subpath": "exampleSite"
12 }
13 }
14 }
15 }
16}