Skip to content

Commit c3bdd60

Browse files
author
Pablo Vieira
committed
fix(disqus): replace js comments - "//" to "/* */"
js comments were invalidating following lines after html compression
1 parent dac10c4 commit c3bdd60

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

_includes/comments.html

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
<div id="comments">
2-
<h1 class="post-content">Leave a comment</h1>
2+
<h3 class="post-content">Leave a comment</h3>
33

44
<div id="disqus_thread"></div>
55
<script>
6-
/**
7-
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
8-
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
9-
*/
10-
116
var disqus_config = function () {
12-
this.page.title = "{{ page.title }}";
13-
this.page.url = "{{ site.url }}{{ page.url }}";
14-
this.page.identifier = "{{ page.id }}";
7+
this.page.title = "{{ page.title }}";
8+
this.page.url = "{{ site.url }}{{ page.url }}";
9+
this.page.identifier = "{{ page.id }}";
1510
};
1611

17-
(function() { // DON'T EDIT BELOW THIS LINE
12+
(function() { /* DON'T EDIT BELOW THIS LINE */
1813
var d = document, s = d.createElement('script');
1914

20-
s.src = '//{{ site.disqus_shortname }}.disqus.com/embed.js';
15+
s.src = 'https://{{ site.disqus_shortname }}.disqus.com/embed.js';
2116

2217
s.setAttribute('data-timestamp', +new Date());
2318
(d.head || d.body).appendChild(s);

0 commit comments

Comments
 (0)