giscus.html 1012 B

12345678910111213141516171819202122232425262728
  1. {{ with .giscus }}
  2. {{ $repo := .repo }}
  3. {{ $repoID := .repoID }}
  4. {{ $category := .category | default "General" }}
  5. {{ $categoryID := .categoryID }}
  6. {{ $theme := .theme | default "light" }}
  7. {{ $map := .map | default "url" }}
  8. {{ $reaction := .reaction | default "1" }}
  9. {{ $metadata := .metadata | default "0" }}
  10. {{ $inputPosition := .inputPosition | default "bottom" }}
  11. {{ $crossOrigin := .crossOrigin | default "anonymous" }}
  12. <script src="https://giscus.app/client.js"
  13. data-repo="{{ $repo }}"
  14. data-repo-id="{{ $repoID }}"
  15. data-category="{{ $category }}"
  16. data-category-id="{{ $categoryID }}"
  17. data-mapping="{{ $map }}"
  18. data-reactions-enabled="{{ $reaction }}"
  19. data-emit-metadata="{{ $metadata }}"
  20. data-input-position="{{ $inputPosition }}"
  21. data-theme="{{ $theme }}"
  22. data-lang="{{ .Site.Language.Lang }}"
  23. crossorigin="{{ $crossOrigin }}"
  24. async>
  25. </script>
  26. {{ end }}