diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2023-10-16 10:56:37 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-10-18 17:35:54 +0200 |
commit | 2eca1b3cc1cd03fee40c0abcdc61dab1016c0475 (patch) | |
tree | 444e59b4de1a36e993271c036655a291490ed443 /tpl | |
parent | 625162674dbd6a32e86fb7fe1f91fafb4615d91b (diff) |
hugolib: Deprecate .Site.DisqusShortname
Use .Site.Config.Services.Disqus.Shortname instead.
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/embedded/templates/disqus.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/tplimpl/embedded/templates/disqus.html b/tpl/tplimpl/embedded/templates/disqus.html index ca5118608..d90a52586 100644 --- a/tpl/tplimpl/embedded/templates/disqus.html +++ b/tpl/tplimpl/embedded/templates/disqus.html @@ -1,6 +1,6 @@ {{- $pc := .Site.Config.Privacy.Disqus -}} {{- if not $pc.Disable -}} -{{ if .Site.DisqusShortname }}<div id="disqus_thread"></div> +{{ if .Site.Config.Services.Disqus.Shortname }}<div id="disqus_thread"></div> <script type="application/javascript"> window.disqus_config = function () { {{with .Params.disqus_identifier }}this.page.identifier = '{{ . }}';{{end}} @@ -13,11 +13,11 @@ return; } var d = document, s = d.createElement('script'); s.async = true; - s.src = '//' + {{ .Site.DisqusShortname }} + '.disqus.com/embed.js'; + s.src = '//' + {{ .Site.Config.Services.Disqus.Shortname }} + '.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> <a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{{end}} -{{- end -}}
\ No newline at end of file +{{- end -}} |