mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Change disqus_config
to window.disqus_config
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
96c0bdf3aa
commit
6ff39fd908
@@ -2,7 +2,7 @@
|
|||||||
{{- if not $pc.Disable -}}
|
{{- if not $pc.Disable -}}
|
||||||
{{ if .Site.DisqusShortname }}<div id="disqus_thread"></div>
|
{{ if .Site.DisqusShortname }}<div id="disqus_thread"></div>
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
var disqus_config = function () {
|
window.disqus_config = function () {
|
||||||
{{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}}
|
{{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}}
|
||||||
{{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}}
|
{{with .Params.disqus_title }}this.page.title = '{{ . }}';{{end}}
|
||||||
{{with .Params.disqus_url }}this.page.url = '{{ . | html }}';{{end}}
|
{{with .Params.disqus_url }}this.page.url = '{{ . | html }}';{{end}}
|
||||||
|
Reference in New Issue
Block a user