From e7e7b599233c278f3eba9622410aa88c07380470 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Tue, 11 Oct 2022 20:44:47 -0700 Subject: [PATCH] Replace utterances with giscus for comments --- config.toml | 5 +---- layouts/partials/comments.html | 26 +++++++++++++++++--------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/config.toml b/config.toml index a7c69e3..b74f4ce 100644 --- a/config.toml +++ b/config.toml @@ -43,11 +43,8 @@ mobileNavigation = "left" description = "Salar Rahmanian" keywords = ["Salar", "Rahmanian", "Salar Rahmanian", "Blog", "python", "scala", "haskell", "nix", "NixOS"] -[params.utteranc] +[params.giscus] enable = true - repo = "softinio/softinio.com" - issueTerm = "url" - # theme = "preferred-color-scheme" [sitemap] changefreq = "weekly" diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 06b4a70..893bc6e 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,12 +1,20 @@ - -{{ if .Site.Params.utteranc.enable }} + +{{ if .Site.Params.giscus.enable }}
-
-{{ end }} \ No newline at end of file +{{ end }}