Skip to content

Commit 9d96439

Browse files
committed
Add Disqus
1 parent 9c81f25 commit 9d96439

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

_layouts/post.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,29 @@ <h2 class="has-text-centered">{{ page.title }}</h2>
99
<div class="is-size-5">
1010
{{ content }}
1111
</div>
12+
<br />
13+
<br />
14+
{% if page.comments %}
15+
<div id="disqus_thread"></div>
16+
<script>
17+
18+
/**
19+
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
20+
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
21+
/*
22+
var disqus_config = function () {
23+
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
24+
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
25+
};
26+
*/
27+
(function() { // DON'T EDIT BELOW THIS LINE
28+
var d = document, s = d.createElement('script');
29+
s.src = 'https://codeindore.disqus.com/embed.js';
30+
s.setAttribute('data-timestamp', +new Date());
31+
(d.head || d.body).appendChild(s);
32+
})();
33+
</script>
34+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
35+
{% endif %}
1236
</div>
1337
{% include footer.html %}

0 commit comments

Comments
 (0)