Added support for Isso

This commit is contained in:
Sumner Evans 2020-03-30 00:19:17 -06:00
parent 624491bce1
commit eb68d3a9d9
No known key found for this signature in database
GPG key ID: 8904527AB50022FD
2 changed files with 20 additions and 0 deletions

View file

@ -94,5 +94,6 @@
{% endif %} {% endif %}
{% include "partial/disqus.html" %} {% include "partial/disqus.html" %}
{% include "partial/isso.html" %}
</article> </article>
{% endblock %} {% endblock %}

View file

@ -0,0 +1,19 @@
{% if ISSO_EMBED_JS_PATH %}
<!-- Isso -->
<section id="isso-thread" data-title="{{ article.title|e }}"></section>
<script
type="text/javascript"
src="{{ ISSO_EMBED_JS_PATH }}"
{% if ISSO_URL %}
data-isso="{{ ISSO_URL }}"
{% endif %}
{% for opt, val in ISSO_OPTIONS.items() %}
data-isso-{{ opt }}="{{ val }}"
{% endfor %}
></script>
<noscript>
{{ _('Please enable JavaScript to view comments.') }}
</noscript>
<!-- End Isso -->
{% endif %}