Merge pull request #154 from cambid/add-isso-feed

Add isso feed of comments
This commit is contained in:
Dmitry Kolosov 2022-05-29 15:54:50 +03:00 committed by GitHub
commit de92845ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -104,6 +104,7 @@ params:
id: "thread-id" # optional id: "thread-id" # optional
avatar: true # optional avatar: true # optional
avatar-bg: "#f0f0f0" # optional avatar-bg: "#f0f0f0" # optional
feed: false # optional
graphcommentId: "" graphcommentId: ""
webmentions: webmentions:
url: https://yourdomain.com/webemntions/receive url: https://yourdomain.com/webemntions/receive

View File

@ -738,4 +738,8 @@ ul.language-select > li, ul.footer-menu > li {
#isso-thread .textarea { #isso-thread .textarea {
color: #000; color: #000;
} }
#isso-thread .isso-feedlink {
position: relative;
z-index: 1;
}
{{ end }} {{ end }}

View File

@ -3,6 +3,7 @@
{{ $id := .Site.Params.isso.id | default "true" }} {{ $id := .Site.Params.isso.id | default "true" }}
{{ $avatar := .Site.Params.isso.avatar | default "true" }} {{ $avatar := .Site.Params.isso.avatar | default "true" }}
{{ $avatarbg := .Site.Params.isso.avatarbg | default "#f0f0f0" }} {{ $avatarbg := .Site.Params.isso.avatarbg | default "#f0f0f0" }}
{{ $feed := .Site.Params.isso.feed | default "false" }}
<article class="post"> <article class="post">
<script <script
data-isso="{{ .Site.Params.isso.data }}" data-isso="{{ .Site.Params.isso.data }}"
@ -14,6 +15,7 @@
data-isso-require-email="{{ .Site.Params.isso.requireEmail }}" data-isso-require-email="{{ .Site.Params.isso.requireEmail }}"
data-isso-avatar="{{ $avatar }}" data-isso-avatar="{{ $avatar }}"
data-isso-avatar-bg="{{ $avatarbg }}" data-isso-avatar-bg="{{ $avatarbg }}"
data-isso-feed="{{ $feed }}"
src="{{ .Site.Params.isso.jsLocation }}"> src="{{ .Site.Params.isso.jsLocation }}">
</script> </script>
<noscript>Please enable JavaScript to view the comments powered by <a href="https://posativ.org/isso/">Isso</a>.</noscript> <noscript>Please enable JavaScript to view the comments powered by <a href="https://posativ.org/isso/">Isso</a>.</noscript>