diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 14dc536..af72c9a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -58,10 +58,10 @@ {{ end }} <!-- Disqus --> - {{ if and site.DisqusShortname (not (eq .Params.comments false)) }} + {{ if and site.Config.Services.Disqus.Shortname (not (eq .Params.comments false)) }} <div class="mt-24" id="disqus_thread"></div> <script> - const disqusShortname = '{{ site.DisqusShortname }}'; + const disqusShortname = '{{ site.Config.Services.Disqus.Shortname }}'; const script = document.createElement('script'); script.src = 'https://' + disqusShortname + '.disqus.com/embed.js'; script.setAttribute('data-timestamp', +new Date());