Commenting system

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-04-23 00:54:54 +04:00
parent 48b51b6876
commit c8a5749a19
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

View File

@ -1,15 +1,18 @@
<div id="disqus_thread"></div> <div class="comments">
<script type="text/javascript" defer> <div id="disqus_thread"></div>
var disqus_config = function() { <script type="text/javascript" defer>
this.page.identifier = '{{ page.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}'; var disqus_config = function () {
this.page.title = '{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}'; this.page.identifier = '{{ page.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify }}';
this.page.url = '{{ page.url | absolute_url | uri_escape }}'; this.page.title = '{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}';
this.page.url = '{{ page.url | absolute_url | uri_escape }}';
}; };
(function() {
var d = document, (function () {
s = d.createElement('script'); var d = document,
s.src = '//valentineus-link.disqus.com/embed.js'; s = d.createElement('script');
s.setAttribute('data-timestamp', +new Date()); s.src = '//valentineus-link.disqus.com/embed.js';
(d.head || d.body).appendChild(s); s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})(); })();
</script> </script>
</div>