This commit is contained in:
Ondřej Surý 2017-04-16 21:34:17 +00:00 committed by GitHub
commit f877efa8e7
4 changed files with 26 additions and 13 deletions

View file

@ -14,9 +14,13 @@
{% include 'article_infos.html' %} {% include 'article_infos.html' %}
{{ article.content }} {{ article.content }}
</div><!-- /.entry-content --> </div><!-- /.entry-content -->
{% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} {% if SITEURL and article.status != "draft" %}
<div class="comments"> <div class="comments">
<h2>Comments !</h2> <h2>Comments !</h2>
{% if ISSO_SITEURL %}
<section id="isso-thread"></section>
{% endif %}
{% if DISQUS_SITENAME %}
<div id="disqus_thread"></div> <div id="disqus_thread"></div>
<script type="text/javascript"> <script type="text/javascript">
var disqus_shortname = '{{ DISQUS_SITENAME }}'; var disqus_shortname = '{{ DISQUS_SITENAME }}';
@ -28,6 +32,7 @@
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})(); })();
</script> </script>
{% endif %}
<noscript>Please enable JavaScript to view the comments.</noscript> <noscript>Please enable JavaScript to view the comments.</noscript>
</div> </div>
{% endif %} {% endif %}

View file

@ -78,5 +78,6 @@
{% include 'analytics.html' %} {% include 'analytics.html' %}
{% include 'disqus_script.html' %} {% include 'disqus_script.html' %}
{% include 'isso_script.html' %}
</body> </body>
</html> </html>

View file

@ -1 +1,4 @@
{% if DISQUS_SITENAME %}<p>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a>.</p>{% endif %} {% if SITEURL %}<p>There are
{% if DISQUS_SITENAME %}<a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{% endif %}
{% if ISSO_SITEURL %}<a href="{{ SITEURL }}/{{ article.url }}#isso-thread">{% endif %}
Comments</a>.</p>{% endif %}

View file

@ -0,0 +1,4 @@
{% if ISSO_SITEURL %}
<script data-isso="{{ ISSO_SITEURL }}/"
src="{{ ISSO_SITEURL }}/js/embed.min.js"></script>
{% endif %}