Content Panel Module

On this page

This module display a content panel on single pages, which includes translations, comments and repo buttons.

Modulegithub.com/hbstack/content-panel
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

Site Parameters

ParameterTypeRequiredDefaultDescription
bottomstring-20pxThe bottom property.
repoobject--The repository settings.
repo.branchstring-mainThe branch name.
repo.repostringY-The repo name, i.e. user/name.
repo.servicestringY-Git service provider: github, gitlab, gitee, codeberg.
repo.service_baseurlstring--Self-hosted Git service URL.
repo.subpathstring--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}