19 lines (19 loc) · 757 B
 1{{- $giscus := .Site.Params.giscus -}}
 2{{- if $giscus.repo }}
 3  <section
 4    class="post-comments"
 5    data-giscus
 6    data-repo="{{ $giscus.repo }}"
 7    data-repo-id="{{ $giscus.repoID }}"
 8    data-category="{{ $giscus.category }}"
 9    data-category-id="{{ $giscus.categoryID }}"
10    data-mapping="{{ or $giscus.mapping "pathname" }}"
11    data-strict="{{ or $giscus.strict "0" }}"
12    data-reactions-enabled="{{ or $giscus.reactionsEnabled "1" }}"
13    data-emit-metadata="{{ or $giscus.emitMetadata "0" }}"
14    data-input-position="{{ or $giscus.inputPosition "bottom" }}"
15    data-theme-light="{{ or $giscus.themeLight "light" }}"
16    data-theme-dark="{{ or $giscus.themeDark "dark" }}"
17    data-lang="{{ or $giscus.lang "en" }}">
18  </section>
19{{- end }}