feat: hashover comments integration
This commit is contained in:
@@ -224,41 +224,26 @@ form:
|
|||||||
size: big
|
size: big
|
||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
cusdis_section:
|
hashover_section:
|
||||||
type: section
|
type: section
|
||||||
title: Cusdis integration settings
|
title: hashover integration settings
|
||||||
underline: true
|
underline: true
|
||||||
|
|
||||||
cusdis.domain:
|
hashover.domain:
|
||||||
type: text
|
type: text
|
||||||
label: Cusdis domain
|
label: hashover domain
|
||||||
help: Domain where your Cusdis instance is hosted
|
help: Domain where your hashover instance is hosted
|
||||||
size: medium
|
size: medium
|
||||||
default: "cusdis.com"
|
|
||||||
|
|
||||||
cusdis.app_id:
|
hashover.title:
|
||||||
type: text
|
|
||||||
label: Cusdis App ID
|
|
||||||
help: ID from Cusdis dashboard (e.g. 35b01c49-15f9-46b3-807f-9240f6cadc1a)
|
|
||||||
size: medium
|
|
||||||
default: ""
|
|
||||||
|
|
||||||
cusdis.title:
|
|
||||||
type: text
|
type: text
|
||||||
label: Comments section title
|
label: Comments section title
|
||||||
size: medium
|
size: medium
|
||||||
default: "Komentarze"
|
default: "Komentarze"
|
||||||
|
|
||||||
cusdis.disable_comments:
|
hashover.disable_comments:
|
||||||
type: text
|
type: text
|
||||||
label: Disable comments info text
|
label: Disable comments info text
|
||||||
help: Information displayed where the comments are disabled
|
help: Information displayed where the comments are disabled
|
||||||
size: medium
|
size: medium
|
||||||
default: "Komentarze są wyłączone dla tego artykułu"
|
default: "Komentarze są wyłączone dla tego artykułu"
|
||||||
|
|
||||||
cusdis.lang:
|
|
||||||
type: textarea
|
|
||||||
label: Cusdis language override
|
|
||||||
help: More info at https://cusdis.com/doc#/advanced/i18n?id=contributing-more-languages
|
|
||||||
size: big
|
|
||||||
default: ""
|
|
||||||
|
|||||||
@@ -21,9 +21,7 @@ footer:
|
|||||||
title_en:
|
title_en:
|
||||||
url:
|
url:
|
||||||
year:
|
year:
|
||||||
cusdis:
|
hashover:
|
||||||
domain:
|
domain:
|
||||||
app_id:
|
|
||||||
title:
|
title:
|
||||||
disable_comments:
|
disable_comments:
|
||||||
lang:
|
|
||||||
|
|||||||
@@ -1,19 +1,9 @@
|
|||||||
{% if theme_config.cusdis.domain %}
|
{% if theme_config.hashover.domain %}
|
||||||
<h2 class="left">{{ theme_config.cusdis.title|raw }}</h2>
|
<h2 class="left">{{ theme_config.hashover.title|raw }}</h2>
|
||||||
{% if page.header.disableComments %}
|
{% 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 %}
|
{% else %}
|
||||||
{% if theme_config.cusdis.lang %}
|
<div id="hashover"></div>
|
||||||
<script>{{ theme_config.cusdis.lang|raw }}</script>
|
<script async defer src="https://{{ theme_config.cusdis.domain }}/comments.php"></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>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user