28 lines
1,012 B
HTML
28 lines
1,012 B
HTML
{{ with .giscus }}
|
|
{{ $repo := .repo }}
|
|
{{ $repoID := .repoID }}
|
|
{{ $category := .category | default "General" }}
|
|
{{ $categoryID := .categoryID }}
|
|
{{ $theme := .theme | default "light" }}
|
|
{{ $map := .map | default "url" }}
|
|
{{ $reaction := .reaction | default "1" }}
|
|
{{ $metadata := .metadata | default "0" }}
|
|
{{ $inputPosition := .inputPosition | default "bottom" }}
|
|
{{ $crossOrigin := .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>
|
|
{{ end }}
|
|
|