文档 Staticman 评论模块

赞助

成为我们的资助者或赞助商,以支持我们的工作。

本页内容

赞助商

该模块将 Staticman 评论模块集成于文档布局。

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

站点参数

hb.docs.staticman 将作为 Staticman 的参数集名称。

hugo.toml

 1[params]
 2  [params.hb]
 3    [params.hb.docs]
 4      [params.hb.docs.staticman]
 5        branch = 'main'
 6        endpoint = 'https://staticman.hugomods.com/'
 7        moderation = true
 8        property = 'comments'
 9        repo = 'user/repo'
10        service = 'github'

hugo.yaml

 1params:
 2  hb:
 3    docs:
 4      staticman:
 5        branch: main
 6        endpoint: https://staticman.hugomods.com/
 7        moderation: true
 8        property: comments
 9        repo: user/repo
10        service: github

hugo.json

 1{
 2   "params": {
 3      "hb": {
 4         "docs": {
 5            "staticman": {
 6               "branch": "main",
 7               "endpoint": "https://staticman.hugomods.com/",
 8               "moderation": true,
 9               "property": "comments",
10               "repo": "user/repo",
11               "service": "github"
12            }
13         }
14      }
15   }
16}

了解更多关于 Staticman 参数的信息。

Staticman 配置

详情请参阅 Staticman 配置

razonyang
2024年11月1日星期五 2023年5月29日星期一