diff options
author | Emruz Hossain <hossainemruz@gmail.com> | 2022-03-15 20:36:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 20:36:11 +0300 |
commit | 3809d298ca49144f1bfbdb921df34883af803409 (patch) | |
tree | 21b657abbf7018d61c07c73a32a4579d2a5f71dc /layouts | |
parent | 974d4485ba78ae3413b3e2d41ddc17925470affa (diff) |
Use repoID and categoryID in giscus template (#560)v3.5.0
* Use repoID and categoryID in giscus template
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Fix links
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/giscus.html | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/layouts/partials/giscus.html b/layouts/partials/giscus.html index 90e11b5..8d9c689 100644 --- a/layouts/partials/giscus.html +++ b/layouts/partials/giscus.html @@ -1,15 +1,19 @@ -{{ $repo := site.Params.features.comment.giscus.repo }} -{{ $category := site.Params.features.comment.giscus.category | default "General" }} -{{ $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" }} +{{ $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" }} +{{ $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 }}" |