mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02: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:
parent
77166314c0
commit
98d093a073
1 changed files with 1 additions and 1 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue