* Use repoID and categoryID in giscus template Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Fix links Signed-off-by: hossainemruz <hossainemruz@gmail.com>
25 lines
1.3 KiB
HTML
25 lines
1.3 KiB
HTML
{{ $repo := site.Params.features.comment.giscus.repo }}
|
|
{{ $repoID := site.Params.features.comment.giscus.repoID }}
|
|
{{ $category := site.Params.features.comment.giscus.category | default "General" }}
|
|
{{ $categoryID := site.Params.features.comment.giscus.categoryID }}
|
|
{{ $theme := site.Params.features.comment.giscus.theme | default "light" }}
|
|
{{ $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" }}
|
|
{{ $crossOrigin := site.Params.features.comment.giscus.crossOrigin | default "anonymous" }}
|
|
|
|
<script src="https://giscus.app/client.js"
|
|
data-repo="{{ $repo }}"
|
|
data-repo-id="{{ $repoID }}"
|
|
data-category="{{ $category }}"
|
|
data-category-id="{{ $categoryID }}"
|
|
data-mapping="{{ $map }}"
|
|
data-reactions-enabled="{{ $reaction }}"
|
|
data-emit-metadata="{{ $metadata }}"
|
|
data-input-position="{{ $inputPosition }}"
|
|
data-theme="{{ $theme }}"
|
|
data-lang="{{ .Site.Language.Lang }}"
|
|
crossorigin="{{ $crossOrigin }}"
|
|
async>
|
|
</script>
|