~xdavidwu/xdavidwu.link

2af92958b70dbb83623fe767dc8806c0b0e4caf4 — Johannes Ganzenmüller 4 years ago a9f012f
Adjust comments to be compatible with compress_html (#2373)

1 files changed, 3 insertions(+), 3 deletions(-)

M _includes/comments-providers/disqus.html
M _includes/comments-providers/disqus.html => _includes/comments-providers/disqus.html +3 -3
@@ 1,10 1,10 @@
{% if site.comments.disqus.shortname %}
  <script>
    var disqus_config = function () {
      this.page.url = "{{ page.url | absolute_url }}";  // Replace PAGE_URL with your page's canonical URL variable
      this.page.identifier = "{{ page.id }}"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
      this.page.url = "{{ page.url | absolute_url }}";  /* Replace PAGE_URL with your page's canonical URL variable */
      this.page.identifier = "{{ page.id }}"; /* Replace PAGE_IDENTIFIER with your page's unique identifier variable */
    };
    (function() { // DON'T EDIT BELOW THIS LINE
    (function() { /* DON'T EDIT BELOW THIS LINE */
      var d = document, s = d.createElement('script');
      s.src = 'https://{{ site.comments.disqus.shortname }}.disqus.com/embed.js';
      s.setAttribute('data-timestamp', +new Date());