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:
parent
655b5102c4
commit
d00dbc17bc
@ -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:
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user