Welcome to mirror list, hosted at ThFree Co, Russian Federation.

giscus.html « partials « layouts - github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 90e11b56c526f1487ec2068c7eb610b0ddce8556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ $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" }}
{{ $inputPosition := site.Params.features.comment.giscus.inputPosition | default "bottom" }}
{{ $crossOrigin := site.Params.features.comment.giscus.crossOrigin | default "anonymous" }}

<script src="https://giscus.app/client.js"
        data-repo="{{ $repo }}"
        data-category="{{ $category }}"
        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>