split isso parameters in mandatory and optional and add them to the config in the README
This commit is contained in:
parent
4dcd78397f
commit
33a9a5e367
13
README.md
13
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
|
||||
|
@ -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" }}
|
||||
<article class="post">
|
||||
<script
|
||||
data-isso="{{ .Site.Params.isso.data }}"
|
||||
data-isso-id="{{ .Site.Params.isso.id}}"
|
||||
data-isso-css="{{ .Site.Params.isso.css }}"
|
||||
data-isso-lang="{{ .Site.Params.isso.lang }}"
|
||||
data-isso-id="{{ $id }}"
|
||||
data-isso-css="{{ $css }}"
|
||||
data-isso-lang="{{ $lang }}"
|
||||
data-isso-reply-to-self="{{ .Site.Params.isso.replyToSelf }}"
|
||||
data-isso-require-author="{{ .Site.Params.isso.requireAuthor }}"
|
||||
data-isso-require-email="{{ .Site.Params.isso.requireEmail }}"
|
||||
data-isso-avatar="{{ .Site.Params.isso.avatar }}"
|
||||
data-isso-avatar-bg="{{ .Site.Params.isso.avatarBg }}"
|
||||
data-isso-avatar="{{ $avatar }}"
|
||||
data-isso-avatar-bg="{{ $avatarbg }}"
|
||||
src="{{ .Site.Params.isso.jsLocation }}">
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the comments powered by <a href="https://posativ.org/isso/">Isso</a>.</noscript>
|
||||
|
Loading…
Reference in New Issue
Block a user