hugo-theme-hyde-hyde/layouts/partials/disqus.html
2018-01-23 10:02:05 +07:00

23 lines
944 B
HTML

<div id="disqus_thread"></div>
<script type="text/javascript">
(function () {
// Please don't inject Disqus on localhost
if (window.location.hostname === "localhost" || location.hostname === "127.0.0.1")
return;
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
var disqus_shortname = '{{ .Site.DisqusShortname }}';
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="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>
</noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by
<span class="logo-disqus">Disqus</span>
</a>