From 6d5355541ba37ad9afc0cc39ad0a53fe9736748d Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 31 Dec 2023 15:29:58 -0600 Subject: [PATCH 1/2] initial work on giscus setup --- config/_default/params.toml | 13 +++++++++++ config/local/params.toml | 2 +- .../index.md | 2 +- layouts/partials/comments.html | 23 +++++++++++++------ 4 files changed, 31 insertions(+), 9 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 8f0b2b3..a2763cd 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -18,6 +18,19 @@ comments = true utterancesRepo = "jbowdre/site-comments" utterancesIssueTerm = "og:title" utterancesTheme = "gruvbox-dark" +giscusCategory = "Announcements" +giscusCategoryId = "DIC_kwDOKKEGD84CcG89" +giscusCrossOrigin = "anonymous" +giscusEmitMetadata = "0" +giscusInputPosition = "bottom" +giscusLang = "en" +giscusLoading = "lazy" +giscusMapping = "og:title" +giscusReactions = "1" +giscusRepo = "jbowdre/site-comments" +giscusRepoId = "R_kgDOKKEGDw" +giscusStrict = "0" +giscusTheme = "dark" analytics = true diff --git a/config/local/params.toml b/config/local/params.toml index c8a1743..3b5ce10 100644 --- a/config/local/params.toml +++ b/config/local/params.toml @@ -1,2 +1,2 @@ -comments = false +comments = true analytics = false \ No newline at end of file diff --git a/content/posts/tailscale-serve-docker-compose-sidecar/index.md b/content/posts/tailscale-serve-docker-compose-sidecar/index.md index 735c753..c8ccbad 100644 --- a/content/posts/tailscale-serve-docker-compose-sidecar/index.md +++ b/content/posts/tailscale-serve-docker-compose-sidecar/index.md @@ -5,7 +5,7 @@ date: 2023-12-30 description: "Using Docker Compose to deploy containerized applications and make them available via Tailscale Serve and Tailscale Funnel" featured: false toc: true -comment: true +comments: true series: Projects tags: - containers diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 66fadd5..f242522 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,12 +1,21 @@ -{{ if .Site.Params.utterancesRepo }} +{{ if .Site.Params.giscusRepo }}
-
{{ end }} \ No newline at end of file From 6bbcfded0faa96db2bfc68bc1344e6669abb6d52 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 31 Dec 2023 16:16:02 -0600 Subject: [PATCH 2/2] 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" }}