12345678910111213141516171819202122232425262728 |
- {{ 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 }}
|