Merge pull request #47 from softinio/migrate-utterances-to-giscus

Replace utterances with giscus for comments
This commit is contained in:
Salar Rahmanian 2022-10-11 20:46:40 -07:00 committed by GitHub
commit a389e26768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 13 deletions

View file

@ -43,11 +43,8 @@ mobileNavigation = "left"
description = "Salar Rahmanian" description = "Salar Rahmanian"
keywords = ["Salar", "Rahmanian", "Salar Rahmanian", "Blog", "python", "scala", "haskell", "nix", "NixOS"] keywords = ["Salar", "Rahmanian", "Salar Rahmanian", "Blog", "python", "scala", "haskell", "nix", "NixOS"]
[params.utteranc] [params.giscus]
enable = true enable = true
repo = "softinio/softinio.com"
issueTerm = "url"
# theme = "preferred-color-scheme"
[sitemap] [sitemap]
changefreq = "weekly" changefreq = "weekly"

View file

@ -1,12 +1,21 @@
<!-- utteranc --> <!-- giscus -->
{{ if .Site.Params.utteranc.enable }} {{ if .Site.Params.giscus.enable }}
<div class="post bg-white"> <div class="post bg-white">
<script src="https://utteranc.es/client.js" <script src="https://giscus.app/client.js"
repo= "{{ .Site.Params.utteranc.repo }}" data-repo="softinio/softinio.com"
issue-term="{{ .Site.Params.utteranc.issueTerm }}" data-repo-id="MDEwOlJlcG9zaXRvcnkxNDQyMjczODU="
theme="{{ default "github-light" .Site.Params.utteranc.theme }}" data-category="Blog Comments"
crossorigin="anonymous" data-category-id="DIC_kwDOCJi8Oc4CR7nj"
async> data-mapping="url"
data-strict="1"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="preferred_color_scheme"
data-lang="en"
crossorigin="anonymous"
async>
</script> </script>
</div> </div>
{{ end }} {{ end }}