summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl
diff options
context:
space:
mode:
authorAkimo <qiuyuantahai5@gmail.com>2022-02-23 13:42:40 +0900
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-23 21:19:30 +0100
commit6ff39fd908242e32942ddd7f239ffd06cc8e7dda (patch)
treef7ad0550b928117bd9b9d2542f32e43518beb8af /tpl/tplimpl
parent96c0bdf3aab010e6bdd68e45b1bb490bfccf765f (diff)
Change `disqus_config` to `window.disqus_config`
Diffstat (limited to 'tpl/tplimpl')
-rw-r--r--tpl/tplimpl/embedded/templates/disqus.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/tplimpl/embedded/templates/disqus.html b/tpl/tplimpl/embedded/templates/disqus.html
index fed512ff0..ca5118608 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}}