mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 04:14:41 +00:00
fix: just include Disqus comment count JS once if enabled
Fix dc2c70e
See #1229
This commit is contained in:
1 parent
0b8cb45034
commit
b57c5f87b8
1 file changed
+1
-2
@@ -125,8 +125,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{/* Disqus Comment Count JS. */}}
|
||||
{{ $disqus_enabled := eq site.Params.comments.engine 1 | and (index site.Params.comments.commentable .Type) | and (ne .Params.commentable false) | or .Params.commentable }}
|
||||
{{ if and $disqus_enabled (site.Params.comments.disqus.show_count | default true) }}
|
||||
{{ if and (eq site.Params.comments.engine 1) (site.Params.comments.disqus.show_count | default true) }}
|
||||
<script id="dsq-count-scr" src="https://{{site.Params.comments.disqus.shortname}}.disqus.com/count.js" async></script>
|
||||
{{ end }}
|
||||
|
||||
|
||||
Reference in new issue
Block a user