博客 Staticman 評論模塊

贊助

成為我們的資助者或贊助商,以支持我們的工作。

本頁內容

贊助商

該模塊將 Staticman 評論模塊集成於博客佈局。

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

站點參數

hb.blog.staticman 將作爲 Staticman 的參數集名稱。

hugo.toml

 1[params]
 2  [params.hb]
 3    [params.hb.blog]
 4      [params.hb.blog.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    blog:
 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         "blog": {
 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月5日 星期二 2023年5月29日 星期一