Skip to content

Commit

Permalink
Change disqus_config to window.disqus_config
Browse files Browse the repository at this point in the history
  • Loading branch information
akimon658 authored and bep committed Feb 23, 2022
1 parent 96c0bdf commit 6ff39fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/tplimpl/embedded/templates/disqus.html
Expand Up @@ -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}}
Expand Down

0 comments on commit 6ff39fd

Please sign in to comment.