From ce0091ed5ec9cf4ca2423c7b5b7adcf1b6b3aeb0 Mon Sep 17 00:00:00 2001 From: Jan Fader Date: Wed, 22 Dec 2021 17:38:58 +0100 Subject: [PATCH 1/5] add isso comment to posts --- layouts/_default/single.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 44cf703..80ac16e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -33,4 +33,25 @@ {{ partial "utterances.html" . }} {{ end }} + {{ if .Site.Params.isso.enabled }} +
+ + +
+
+
+
+ {{ end }} + {{ end }} From 0dee64635d72ca989cfa1196e27048e148d5666b Mon Sep 17 00:00:00 2001 From: Jan Fader Date: Wed, 22 Dec 2021 18:04:13 +0100 Subject: [PATCH 2/5] move actual code to partial --- layouts/_default/single.html | 19 +------------------ layouts/partials/isso.html | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 layouts/partials/isso.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 80ac16e..72cc1de 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -34,24 +34,7 @@ {{ end }} {{ if .Site.Params.isso.enabled }} -
- - -
-
-
-
+ {{ partial "isso.html" . }} {{ end }} {{ end }} diff --git a/layouts/partials/isso.html b/layouts/partials/isso.html new file mode 100644 index 0000000..2e03b0f --- /dev/null +++ b/layouts/partials/isso.html @@ -0,0 +1,18 @@ +
+ + +
+
+
+
From 0486819358e500e552bb5993813df41b66172f80 Mon Sep 17 00:00:00 2001 From: Jan Fader Date: Wed, 22 Dec 2021 18:07:53 +0100 Subject: [PATCH 3/5] add ISSO to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0e3db84..fdd6f04 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Anubis is a simple minimalist theme for [Hugo blog engine](https://gohugo.io/). - Social icons - Google Analytics - Disqus +- ISSO - Utteranc.es - RSS feeds - Hiding posts from the RSS feed From 4dcd78397ff56e0034b6cebac83bc8c70716b4e5 Mon Sep 17 00:00:00 2001 From: Jan Fader Date: Thu, 23 Dec 2021 16:26:48 +0100 Subject: [PATCH 4/5] black text in textarea for isso --- assets/css/main.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/css/main.css b/assets/css/main.css index 23df334..2481ddd 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -601,3 +601,9 @@ ul.language-select > li, ul.footer-menu > li { {{ $custom := resources.Get . }} {{ $custom.Content }} {{ end }} + +{{ if site.Params.isso.enabled }} + #isso-thread .textarea { + color: #000; + } +{{ end }} From 33a9a5e36745565e561cb90430568c623c15edfc Mon Sep 17 00:00:00 2001 From: Jan Fader Date: Thu, 23 Dec 2021 20:02:36 +0100 Subject: [PATCH 5/5] split isso parameters in mandatory and optional and add them to the config in the README --- README.md | 13 +++++++++++++ layouts/partials/isso.html | 15 ++++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fdd6f04..f189a02 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,19 @@ params: utterancesTheme: "" # optional utterancesIssue: "" # optional utterancesLabel: "" # optional + # isso support + isso: + enabled: true # mandatory + data: "https://comments.example.com/" # mandatory + jsLocation: "https://comments.example.com/js/embed.min.js" # mandatory + css: true # optional + lang: "de" # optional + replyToSelf: true # mandatory + requireAuthor: true # mandatory + requireEmail: true # mandatory + id: "thread-id" # optional + avatar: true # optional + avatar-bg: "#f0f0f0" # optional webmentions: url: https://yourdomain.com/webemntions/receive login: hugo-theme-anubis diff --git a/layouts/partials/isso.html b/layouts/partials/isso.html index 2e03b0f..ed62db6 100644 --- a/layouts/partials/isso.html +++ b/layouts/partials/isso.html @@ -1,14 +1,19 @@ +{{ $lang := .Site.Params.isso.lang | default "en" }} +{{ $css := .Site.Params.isso.css | default "true" }} +{{ $id := .Site.Params.isso.id | default "true" }} +{{ $avatar := .Site.Params.isso.avatar | default "true" }} +{{ $avatarbg := .Site.Params.isso.avatarbg | default "#f0f0f0" }}