|
|
@@ -1,4 +1,4 @@
|
|
|
-{{- if and (not (eq (.Site.DisqusShortname | default "") "")) (eq (.Params.disableComments | default false) false) -}}
|
|
|
+{{- if and (not (eq (.Site.Config.Services.Disqus.Shortname | default "") "")) (eq (.Params.disableComments | default false) false) -}}
|
|
|
<div id="disqus_thread"></div>
|
|
|
<script>
|
|
|
window.disqus_config = function () {
|
|
|
@@ -12,7 +12,7 @@
|
|
|
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);
|
|
|
})();
|