{% if DISQUS_SITENAME %}
<section class="my-4">
  <div id="disqus_thread"></div>
  <script>
    var disqus_config = function () {
      this.page.url = '{{ SITEURL }}/{{ article.url }}';
      this.page.identifier = '{{ SITEURL }}/{{ article.url }}';
    };

    (function () {
      var d = document, s = d.createElement('script');

      s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
      s.setAttribute('data-timestamp', +new Date());
      (d.head || d.body).appendChild(s);
    })();
  </script>
  <noscript>
    Please enable JavaScript to view the
    <a href="https://disqus.com/?ref_noscript" rel="nofollow">
      comments powered by Disqus.
    </a>
  </noscript>
</section>
{% else %}
{% endif %}