Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorAkimo <qiuyuantahai5@gmail.com>2022-02-23 07:42:40 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-23 23:19:30 +0300
commit6ff39fd908242e32942ddd7f239ffd06cc8e7dda (patch)
treef7ad0550b928117bd9b9d2542f32e43518beb8af /tpl
parent96c0bdf3aab010e6bdd68e45b1bb490bfccf765f (diff)
Change `disqus_config` to `window.disqus_config`
Diffstat (limited to 'tpl')
-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}}