mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 09:04:43 -04:00
Change disqus_config
to window.disqus_config
This commit is contained in:
parent
96c0bdf3aa
commit
6ff39fd908
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user