source: tanzpartie-hugo/themes/bilberry-hugo-theme/layouts/partials/giscus.html @ 17225

Last change on this file since 17225 was 16971, checked in by Henrik Bettermann, 2 years ago
File size: 877 bytes
Line 
1{{ if .Site.Params.giscus }}
2    <script src="{{ .Site.Params.giscusJsUrl }}"
3        data-repo="{{ .Site.Params.giscusRepository }}"
4        data-repo-id="{{ .Site.Params.giscusRepositoryId }}"
5        data-category="{{.Site.Params.giscusCategory}}"
6        data-category-id="{{ .Site.Params.giscusCategoryId }}"
7        data-mapping="{{ .Site.Params.giscusMapping }}"
8        data-reactions-enabled="{{ .Site.Params.giscusReactions }}"
9        data-emit-metadata="{{ .Site.Params.giscusMetadata }}"
10        data-theme="{{ .Site.Params.giscusTheme }}"
11        {{ if isset .Site.Params "giscuslanguage" }}
12            data-lang="{{ .Site.Params.giscusLanguage }}"
13        {{ else }}
14            data-lang="{{ .Site.Language.Lang }}"
15        {{ end }}
16        crossorigin="{{ .Site.Params.giscusCrossOrigin }}"
17        async>
18    </script>
19    <div id="giscus"></div>
20{{ end }}
Note: See TracBrowser for help on using the repository browser.