hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 6ff39fd908242e32942ddd7f239ffd06cc8e7dda
parent 96c0bdf3aab010e6bdd68e45b1bb490bfccf765f
Author: Akimo <qiuyuantahai5@gmail.com>
Date:   Wed, 23 Feb 2022 13:42:40 +0900

Change `disqus_config` to `window.disqus_config`
Diffstat:
Mtpl/tplimpl/embedded/templates/disqus.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tpl/tplimpl/embedded/templates/disqus.html b/tpl/tplimpl/embedded/templates/disqus.html
@@ -2,7 +2,7 @@
 {{- if not $pc.Disable -}}
 {{ if .Site.DisqusShortname }}<div id="disqus_thread"></div>
 <script type="application/javascript">
-    var disqus_config = function () {
+    window.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}}