simoncor.net/themes/hugo-coder/layouts/partials/posts/cusdis.html

17 lines
666 B
HTML
Raw Permalink Normal View History

2024-08-26 17:13:18 +02:00
{{- if isset .Site.Params "cusdis" -}}
{{- if and (isset .Site.Params.cusdis "data_app_id") (eq (.Params.disableComments | default false) false) -}}
<div class="comments">
<h4>Comments:</h4>
<div id="cusdis_thread"
data-host="https://cusdis.com"
data-app-id="{{ .Site.Params.cusdis.data_app_id }}"
data-page-id="{{ .File.UniqueID }}"
data-page-url="{{ .Permalink }}"
data-page-title="{{ .Title }}">
</div>
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>
</div>
{{- end -}}
{{- end -}}