diff options
author | Valentin Popov <info@valentineus.link> | 2018-12-07 00:25:52 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-12-07 00:25:52 +0300 |
commit | 1cead691ca1d7fbfd8dba538dfef205d36a09acf (patch) | |
tree | 4004ea4928e5eb39abf34c20e7a78cd4f2d8441a | |
parent | 6900263c525350b03fbda3601754cb99e71befb0 (diff) | |
download | popov.link-1cead691ca1d7fbfd8dba538dfef205d36a09acf.tar.xz popov.link-1cead691ca1d7fbfd8dba538dfef205d36a09acf.zip |
feat(comments): Adding comments Disqus
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | _includes/disqus.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/_includes/disqus.html b/_includes/disqus.html new file mode 100644 index 0000000..4292176 --- /dev/null +++ b/_includes/disqus.html @@ -0,0 +1,16 @@ +<div id="disqus_thread"></div> +<script defer type="text/javascript"> + var disqus_config = function () { + this.page.identifier = '{{ page.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}'; + this.page.title = '{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}'; + 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> |