diff --git a/README.md b/README.md index 78b376a..83f1ede 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 @@ -87,6 +88,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/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 }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 44cf703..72cc1de 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -33,4 +33,8 @@ {{ partial "utterances.html" . }} {{ 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..ed62db6 --- /dev/null +++ b/layouts/partials/isso.html @@ -0,0 +1,23 @@ +{{ $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" }} +
+ + +
+
+
+