feat: hashover comments integration

This commit is contained in:
2023-12-19 21:18:21 +01:00
parent 1caf73dce1
commit 22fcc7b96c
3 changed files with 226 additions and 253 deletions

View File

@@ -1,19 +1,9 @@
{% if theme_config.cusdis.domain %}
<h2 class="left">{{ theme_config.cusdis.title|raw }}</h2>
{% if theme_config.hashover.domain %}
<h2 class="left">{{ theme_config.hashover.title|raw }}</h2>
{% if page.header.disableComments %}
<p class="left">{{ theme_config.cusdis.disable_comments|raw }}</p>
<p class="left">{{ theme_config.hashover.disable_comments|raw }}</p>
{% else %}
{% if theme_config.cusdis.lang %}
<script>{{ theme_config.cusdis.lang|raw }}</script>
{% endif %}
<div id="cusdis_thread"
data-host="https://{{ theme_config.cusdis.domain }}"
data-app-id="{{ theme_config.cusdis.app_id }}"
data-page-id="{{ page.slug }}"
data-page-url="{{ page.url(true) }}"
data-page-title="{{ page.title }}"
data-theme="auto"
></div>
<script async defer src="https://{{ theme_config.cusdis.domain }}/js/cusdis.es.js"></script>
<div id="hashover"></div>
<script async defer src="https://{{ theme_config.cusdis.domain }}/comments.php"></script>
{% endif %}
{% endif %}