aboutsummaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 748d3a9..b511563 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -23,6 +23,23 @@ layout: default
</div>
+{% if page.comments %}
+ <div id="disqus_thread"></div>
+ <script type="text/javascript" defer>
+ var disqus_config = function () {
+ this.page.url = '{{ page.url | absolute_url }}';
+ this.page.identifier = '{{ page.url | absolute_url }}';
+ };
+
+ (function() {
+ var d = document, s = d.createElement('script');
+ s.src = 'https://valentineus-link.disqus.com/embed.js';
+ s.setAttribute('data-timestamp', +new Date());
+ (d.head || d.body).appendChild(s);
+ })();
+ </script>
+{% endif %}
+
<div class="pagination">
{% if page.next.url %}
<a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">&#8592;</a>