From 6ff39fd908242e32942ddd7f239ffd06cc8e7dda Mon Sep 17 00:00:00 2001 From: Akimo <qiuyuantahai5@gmail.com> Date: Wed, 23 Feb 2022 13:42:40 +0900 Subject: [PATCH] Change `disqus_config` to `window.disqus_config` --- tpl/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 index fed512ff..ca511860 100644 --- 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}} -- 2.30.2