Content Panel Module

Donate

Become a backer or sponsor to support our work.

On this page

Sponsors

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.
commentsboolean-trueWhen true disable comments globally.
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      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}
razonyang
Thursday, November 21, 2024 Friday, April 14, 2023