🚧 Add new config parameters for Giscus comment.

This commit is contained in:
凡梦星尘 2022-07-07 09:00:07 +08:00
parent c12cdf7b48
commit 1339ffe29b
2 changed files with 8 additions and 2 deletions

View File

@ -815,6 +815,12 @@ params:
# 讨论区帖子标题,可选值: pathname | url | title | og:title | 自定义
# Available values: pathname | url | title | og:title | custom
mapping: title
# 帖子上的反应将会显示在评论前
# The reactions for post will be shown before the comments
reactions: false
# 将元数据定期被发送到父页面(被嵌入的页面或控制台,用于调试)
# Metadata will be sent periodically to the parent window
emit: false
# 评论输入框的位置,可选值: top | bottom
# Aavilable value: top | bottom
inputPosition: top

View File

@ -6,8 +6,8 @@
data-category="{{ .category }}"
data-category-id="{{ .categoryId }}"
data-mapping="{{ .mapping }}"
data-reactions-enabled="0"
data-emit-metadata="1"
data-reactions-enabled="{{ int .reactions }}"
data-emit-metadata="{{ int .emit }}"
data-input-position="{{ .inputPosition }}"
data-theme="{{ .theme }}"
data-lang="{{ $.Site.LanguageCode }}"