web/_includes/disqus.html

30 lines
786 B
HTML
Raw Normal View History

2019-09-30 15:38:41 +03:00
<!--
The Disqus lazy loading.
2021-01-23 10:07:18 +03:00
Powered by: <https://github.com/osvaldasvalutis/disqusLoader.js>
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">
2021-01-23 10:07:18 +03:00
<p class="text-center text-muted pb-5">
Loading comments from <a href="https://disqus.com/">Disqus</a> ...
2020-07-29 23:58:05 +03:00
</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>
2021-01-23 10:07:18 +03:00
const options = {
2019-09-30 15:38:41 +03:00
scriptUrl: '//{{ site.disqus.shortname }}.disqus.com/embed.js',
disqusConfig: function() {
2021-01-23 10:07:18 +03:00
this.page.title = '{{ page.title }}';
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>