fix: disqus.html (#1876)

Using 'let' keyword doesn't properly work for the disqus configuration variables. 
The original Hugo disqus template uses 'var' (https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/disqus.html),
and the Disqus documentation (https://help.disqus.com/en/articles/1717084-javascript-configuration-variables) also uses the 'var' keyword.
This commit is contained in:
Paaz CA authored and GitHub committed 2020-10-08 21:37:20 +01:00
1 parent 77166314c0
commit 98d093a073
1 file changed
+1 -1
@@ -1,7 +1,7 @@
{{ if site.Params.comments.disqus.shortname }}
<div id="disqus_thread"></div>
<script>
let disqus_config = function () {
var disqus_config = function () {
{{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}}
{{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}}
{{with .Params.disqus_url }}this.page.url = '{{ . | html }}';{{end}}