Compare commits

2 Commits
master ... main

Author SHA1 Message Date
c8e5fbc84c Modify wrong variables in isso comments 2023-12-06 18:19:07 -06:00
557a389116 Add params for isso comment system 2023-12-05 23:42:31 -06:00

View File

@@ -146,6 +146,44 @@
Please enable JavaScript to view the comments powered by <a href="https://giscus.app">Giscus</a>. Please enable JavaScript to view the comments powered by <a href="https://giscus.app">Giscus</a>.
</noscript> </noscript>
{{- end -}} {{- end -}}
{{- /* ISSO Comment System */ -}}
{{- $isso := $comment.isso | default dict -}}
{{- if $isso.enable -}}
<div id="isso-comments" class="comment">
{{- $attr := printf `data-isso="%v"` $isso.apiURL -}}
{{- $attr = printf `%v data-isso-css="%v"` $attr ($isso.css | default true) -}}
{{- with $isso.thread_id -}}
{{- $attr = printf `%v data-isso-id="%v"` $attr . -}}
{{- end -}}
{{- with $isso.cssURL -}}
{{- $attr = printf `%v data-isso-css-url="%v"` $attr . -}}
{{- end -}}
{{- with $isso.lang -}}
{{- $attr = printf `%v data-isso-lang="%v"` $attr . -}}
{{- end -}}
{{- $attr = printf `%v data-isso-default-lang="%v"` $attr ($isso.default_lang | default "en") -}}
{{- $attr = printf `%v data-isso-max-comments-top="%v"` $attr ($isso.max_top | default 10) -}}
{{- $attr = printf `%v data-isso-max-comments-nested="%v"` $attr ($isso.max_nested | default 5) -}}
{{- $attr = printf `%v data-isso-reveal-on-click="%v"` $attr ($isso.reveal_on_click | default 5) -}}
{{- $attr = printf `%v data-isso-avatar="%v"` $attr ($isso.avatar | default true) -}}
{{- $attr = printf `%v data-isso-avatar-bg="%v"` $attr ($isso.avatar_bg | default "#f0f0f0") -}}
{{- $attr = printf `%v data-isso-avatar-fg="%v"` $attr ($isso.avatar_fg | default "#9abf88 #5698c4 #e279a3 #9163b6" ) -}}
{{- $attr = printf `%v data-isso-vote="%v"` $attr ($isso.vote | default true) -}}
{{- with $isso.vote_levels -}}
{{- $attr = printf `%v data-isso-vote-levels="%v"` $attr . -}}
{{- end -}}
{{- $attr = printf `%v data-isso-page-author-hashes="%v"` $attr ($isso.author_hashes | default "f124cf6b2f01,7831fe17a8cd") -}}
{{- $attr = printf `%v data-isso-reply-notifications-default-enabled="%v"` $attr ($isso.reply_notifications | default false) -}}
{{- dict "Source" (printf "%v/js/embed.min.js" $isso.apiURL) "Defer" true "Attr" $attr | partial "plugin/script.html" -}}
<section id="isso-thread">
<noscript>
Please enable JavaScript to view the comments powered by <a href="https://isso-comments.de">ISSO</a>.
</noscript>
</section>
{{- end -}}
</div> </div>
{{- end -}} {{- end -}}