simoncor.net/themes/hugo-coder/layouts/partials/posts/cusdis.html
Simon Cornet 956e73d0e4
All checks were successful
Build and Publish / Build (push) Successful in 5s
Build and Publish / Deployment (push) Successful in 58s
[hugo] feat: update
2024-08-26 17:13:18 +02:00

17 lines
666 B
HTML

{{- 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 -}}