Updated Disqus template to match current Hugo version
This commit is contained in:
parent
470f714614
commit
2d79f3a486
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue