mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
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:
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}}
|
||||
|
||||
Reference in new issue
Block a user