feat(comment): add strict and input-position to Giscus config (#648)

* 添加giscus设置选项

根据giscus官方文档,添加了data-strict和data-input-position设置选项

* feat: add strict and inputPosition to giscus config section

Co-authored-by: Jimmy Cai <github@jimmycai.com>
This commit is contained in:
辛巳流火 2022-07-31 18:39:20 +08:00 committed by GitHub
parent 655b5102c4
commit d00dbc17bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -92,10 +92,12 @@ params:
category: category:
categoryID: categoryID:
mapping: mapping:
strict:
lightTheme: lightTheme:
darkTheme: darkTheme:
reactionsEnabled: 1 reactionsEnabled: 1
emitMetadata: 0 emitMetadata: 0
inputPosition:
lang: lang:
gitalk: gitalk:

View File

@ -6,8 +6,10 @@
data-category="{{- .category -}}" data-category="{{- .category -}}"
data-category-id="{{- .categoryID -}}" data-category-id="{{- .categoryID -}}"
data-mapping="{{- default `title` .mapping -}}" data-mapping="{{- default `title` .mapping -}}"
data-strict="{{- default 0 .strict -}}"
data-reactions-enabled="{{- default 1 .reactionsEnabled -}}" data-reactions-enabled="{{- default 1 .reactionsEnabled -}}"
data-emit-metadata="{{- default 0 .emitMetadata -}}" data-emit-metadata="{{- default 0 .emitMetadata -}}"
data-input-position="{{- default `top` .inputPosition -}}"
data-theme="{{- default `light` .lightTheme -}}" data-theme="{{- default `light` .lightTheme -}}"
data-lang="{{- default `en` .lang -}}" data-lang="{{- default `en` .lang -}}"
crossorigin="anonymous" crossorigin="anonymous"