From e7e7b599233c278f3eba9622410aa88c07380470 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Tue, 11 Oct 2022 20:44:47 -0700 Subject: [PATCH 1/2] 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 }} From 0161b3ce1ef7b33029e2cb0fbe4c3579f4d0b9f5 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Tue, 11 Oct 2022 20:46:09 -0700 Subject: [PATCH 2/2] Add missing space --- layouts/partials/comments.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 893bc6e..5c54724 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -18,3 +18,4 @@ {{ end }} +