aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-07 12:18:53 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-07 12:18:53 +0300
commitabd69b6b5ea249826f78d2a841bc12ad5a7dac1b (patch)
tree7e064f62bc89cdf35a3664c3fbb8feb3ffaf6bbb /_includes
parenta646efb49b9fe1ccdfe948f7a9bb4d3e6b1b56a4 (diff)
downloadpopov.link-abd69b6b5ea249826f78d2a841bc12ad5a7dac1b.tar.xz
popov.link-abd69b6b5ea249826f78d2a841bc12ad5a7dac1b.zip
Comment Library
Signed-off-by: Valentin Popov <valentineus@gmail.com>
Diffstat (limited to '_includes')
-rw-r--r--_includes/disqus.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/_includes/disqus.html b/_includes/disqus.html
new file mode 100644
index 0000000..b6973a2
--- /dev/null
+++ b/_includes/disqus.html
@@ -0,0 +1,15 @@
+<div id="disqus_thread"></div>
+<script type="text/javascript" defer>
+ var disqus_config = function() {
+ this.page.identifier = '{{ page.id | slugify }}';
+ this.page.title = '{{ page.title | smartify | strip_html | normalize_whitespace }}';
+ this.page.url = '{{ page.url | absolute_url | uri_escape }}';
+ };
+ (function() {
+ var d = document,
+ s = d.createElement('script');
+ s.src = '//valentineus-link.disqus.com/embed.js';
+ s.setAttribute('data-timestamp', +new Date());
+ (d.head || d.body).appendChild(s);
+ })();
+</script>