From 9d5f03ca14ac1d444ff024c0f4a9fb5e512f293c Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 31 Dec 2023 16:16:02 -0600 Subject: [PATCH] fixes for loading giscus comments --- config/_default/params.toml | 15 ++++++--------- config/local/params.toml | 2 +- layouts/partials/comments.html | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index a2763cd..c014df3 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -8,16 +8,8 @@ numberOfRelatedPosts = 5 indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-." -[author] - name = "John Bowdre" - email = "jbowdre@omg.lol" - username = "jbowdre" - # Comments comments = true -utterancesRepo = "jbowdre/site-comments" -utterancesIssueTerm = "og:title" -utterancesTheme = "gruvbox-dark" giscusCategory = "Announcements" giscusCategoryId = "DIC_kwDOKKEGD84CcG89" giscusCrossOrigin = "anonymous" @@ -30,10 +22,15 @@ giscusReactions = "1" giscusRepo = "jbowdre/site-comments" giscusRepoId = "R_kgDOKKEGDw" giscusStrict = "0" -giscusTheme = "dark" +giscusTheme = "noborder_gray" analytics = true +[author] +name = "John Bowdre" +email = "jbowdre@omg.lol" +username = "jbowdre" + [theme] palette = "runtimeterror" diff --git a/config/local/params.toml b/config/local/params.toml index 3b5ce10..c8a1743 100644 --- a/config/local/params.toml +++ b/config/local/params.toml @@ -1,2 +1,2 @@ -comments = true +comments = false analytics = false \ No newline at end of file diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index f242522..286468d 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,4 +1,4 @@ -{{ if .Site.Params.giscusRepo }} +{{ if isset site.Params "giscusrepo" }}