30 lines
No EOL
1.2 KiB
HTML
30 lines
No EOL
1.2 KiB
HTML
<!-- Start disqus -->
|
|
<script src="{{ "/assets/js/disqusLoader.js" | relative_url }}" /></script>
|
|
<div id="disqus_thread"><h3>Discussion and feedback</h3></div>
|
|
<div class="disqus"></div>
|
|
<div class="disqus-loading"><!-- Please wait, loading comments… --></div>
|
|
<style>
|
|
.disqus-placeholder.is-hidden { display: none; }
|
|
</style>
|
|
<script>
|
|
disqusLoader( '.disqus',
|
|
{
|
|
scriptUrl: 'https://{{ site.data.theme.disqus }}.disqus.com/embed.js',
|
|
disqusConfig: function()
|
|
{
|
|
this.page.identifier = '{{ page.id }}';
|
|
this.page.url = '{{ site.baseurl }}/{{ post.url }}';
|
|
this.page.title = '{{page.title}}';
|
|
this.callbacks.onReady = [function()
|
|
{
|
|
var el = document.querySelector( '.disqus-loading' );
|
|
if( el.classList )
|
|
el.classList.add( 'is-hidden' );
|
|
else
|
|
el.className += ' ' + 'is-hidden';
|
|
}];
|
|
}
|
|
});
|
|
</script>
|
|
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
<!-- End disqus --> |