mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Docs: fix Disqus shortname reference
This commit is contained in:
committed by
digitalcraftsman
parent
cfbae7cea2
commit
207a574f0c
@@ -53,7 +53,7 @@ Users have noticed that enabling Disqus comments when running the Hugo web serve
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||||
var disqus_shortname = '{{ .Site.Params.disqusShortname }}';
|
var disqus_shortname = '{{ .Site.DisqusShortname }}';
|
||||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
})();
|
})();
|
||||||
|
Reference in New Issue
Block a user