Use repoID and categoryID in giscus template
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
974d4485ba
commit
f44cbb876b
1 changed files with 11 additions and 7 deletions
|
@ -1,15 +1,19 @@
|
||||||
{{ $repo := site.Params.features.comment.giscus.repo }}
|
{{ $repo := site.Params.features.comment.giscus.repo }}
|
||||||
{{ $category := site.Params.features.comment.giscus.category | default "General" }}
|
{{ $repoID := site.Params.features.comment.giscus.repoID }}
|
||||||
{{ $theme := site.Params.features.comment.giscus.theme | default "light" }}
|
{{ $category := site.Params.features.comment.giscus.category | default "General" }}
|
||||||
{{ $map := site.Params.features.comment.giscus.map | default "url" }}
|
{{ $categoryID := site.Params.features.comment.giscus.categoryID }}
|
||||||
{{ $reaction := site.Params.features.comment.giscus.reaction | default "1" }}
|
{{ $theme := site.Params.features.comment.giscus.theme | default "light" }}
|
||||||
{{ $metadata := site.Params.features.comment.giscus.metadata | default "0" }}
|
{{ $map := site.Params.features.comment.giscus.map | default "url" }}
|
||||||
|
{{ $reaction := site.Params.features.comment.giscus.reaction | default "1" }}
|
||||||
|
{{ $metadata := site.Params.features.comment.giscus.metadata | default "0" }}
|
||||||
{{ $inputPosition := site.Params.features.comment.giscus.inputPosition | default "bottom" }}
|
{{ $inputPosition := site.Params.features.comment.giscus.inputPosition | default "bottom" }}
|
||||||
{{ $crossOrigin := site.Params.features.comment.giscus.crossOrigin | default "anonymous" }}
|
{{ $crossOrigin := site.Params.features.comment.giscus.crossOrigin | default "anonymous" }}
|
||||||
|
|
||||||
<script src="https://giscus.app/client.js"
|
<script src="https://giscus.app/client.js"
|
||||||
data-repo="{{ $repo }}"
|
data-repo="{{ $repo }}"
|
||||||
|
data-repo-id="{{ $repoID }}"
|
||||||
data-category="{{ $category }}"
|
data-category="{{ $category }}"
|
||||||
|
data-category-id="{{ $categoryID }}"
|
||||||
data-mapping="{{ $map }}"
|
data-mapping="{{ $map }}"
|
||||||
data-reactions-enabled="{{ $reaction }}"
|
data-reactions-enabled="{{ $reaction }}"
|
||||||
data-emit-metadata="{{ $metadata }}"
|
data-emit-metadata="{{ $metadata }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue