hugo-theme-minima/layouts/partials/disqus.html

16 lines
776 B
HTML
Raw Normal View History

2021-09-11 13:46:01 +02:00
<div id="disqus_thread" class="my-8"></div>
2021-07-18 10:34:01 +02:00
<script type="text/javascript">
(function () {
// Don't ever inject Disqus on localhost--it creates unwanted
// discussions from 'localhost:1313' on your Disqus account...
if (window.location.hostname == "localhost")
return;
2021-07-19 08:36:50 +02:00
const dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
2021-11-12 08:47:28 +01:00
const disqus_shortname = '{{ .Site.Params.shortname }}';
2021-07-18 10:34:01 +02:00
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>