Skip to content

Commit f7d539d

Browse files
committed
Fix disqus
1 parent 55598ea commit f7d539d

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

_includes/disqus.html

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
<div id="disqus_thread"></div>
22
<script>
3-
var disqus_config = function () {
4-
this.page.url = '{{ page.url | absolute_url }}';
5-
this.page.identifier = '{{ page.url | absolute_url }}';
6-
};
7-
(function() {
8-
var d = document, s = d.createElement('script');
9-
s.src = 'https://{{ site.dash.disqus.shortname }}.disqus.com/embed.js';
10-
s.setAttribute('data-timestamp', +new Date());
11-
(d.head || d.body).appendChild(s);
12-
})();
3+
var disqus_config = function () {
4+
this.page.url = '{{ page.url | absolute_url }}';
5+
this.page.identifier = '{{ page.url | absolute_url }}';
6+
this.page.title = '{{ site.title | escape }}';
7+
};
8+
9+
(function() { // REQUIRED CONFIGURATION VARIABLE: EDIT THE SHORTNAME BELOW
10+
var d = document, s = d.createElement('script');
11+
12+
s.src = '//{{ site.dash.disqus.shortname }}.disqus.com/embed.js';
13+
14+
s.setAttribute('data-timestamp', +new Date());
15+
(d.head || d.body).appendChild(s);
16+
})();
1317
</script>
1418
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

jekyll-dash.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-dash"
5-
spec.version = "1.0.10"
5+
spec.version = "1.0.11"
66
spec.authors = ["Miguel Gonzalez Sanchez"]
77
spec.email = ["[email protected]"]
88

0 commit comments

Comments
 (0)