From 33a9a5e36745565e561cb90430568c623c15edfc Mon Sep 17 00:00:00 2001 From: Jan Fader Date: Thu, 23 Dec 2021 20:02:36 +0100 Subject: [PATCH] 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" }}