diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 947960d..11df1e5 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -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 diff --git a/layouts/partials/_thirdparty/comment/giscus.html b/layouts/partials/_thirdparty/comment/giscus.html index d1b476f..2b4a8e6 100644 --- a/layouts/partials/_thirdparty/comment/giscus.html +++ b/layouts/partials/_thirdparty/comment/giscus.html @@ -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 }}"