Added support for Isso
This commit is contained in:
parent
624491bce1
commit
eb68d3a9d9
2 changed files with 20 additions and 0 deletions
|
@ -94,5 +94,6 @@
|
|||
{% endif %}
|
||||
|
||||
{% include "partial/disqus.html" %}
|
||||
{% include "partial/isso.html" %}
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
19
templates/partial/isso.html
Normal file
19
templates/partial/isso.html
Normal 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 %}
|
Loading…
Reference in a new issue