web/_includes/disqus.html

29 lines
746 B
HTML
Raw Normal View History

2019-09-30 15:38:41 +03:00
<!--
The Disqus lazy loading.
Powered by: https://osvaldas.info/lazy-loading-disqus-comments
2020-01-02 16:17:49 +03:00
v2.0
https://github.com/cotes2020/jekyll-theme-chirpy
2019-09-30 15:38:41 +03:00
© 2019 Cotes Chung
MIT License
-->
2020-07-29 23:58:05 +03:00
<div id="disqus" class="pt-2 pb-2">
<p class="font-italic text-center text-muted small">
Comments powered by <a href="https://disqus.com/">Disqus</a>.
</p>
2019-09-30 15:38:41 +03:00
</div>
2021-01-18 18:27:43 +03:00
<script src="{{ '/assets/js/lib/jquery.disqusloader.min.js' | relative_url }}"></script>
2019-09-30 15:38:41 +03:00
<script>
var options = {
scriptUrl: '//{{ site.disqus.shortname }}.disqus.com/embed.js',
disqusConfig: function() {
2021-01-18 18:27:43 +03:00
this.page.url = '{{ page.url | absolute_url }}';
2019-09-30 15:38:41 +03:00
this.page.identifier = '{{ page.url }}';
}
};
$.disqusLoader('#disqus', options);
2021-01-18 18:27:43 +03:00
</script>