|
@@ -47,9 +47,7 @@
|
|
|
|
|
|
{{/* Show Disqus comment count if enabled. */}}
|
|
{{/* Show Disqus comment count if enabled. */}}
|
|
{{ $comments_provider := trim (site.Params.comments.provider | lower) " " }}
|
|
{{ $comments_provider := trim (site.Params.comments.provider | lower) " " }}
|
|
- {{ $commentable_page_types := site.Params.comments.commentable | default dict }}
|
|
|
|
- {{ $commentable_page_type := index $commentable_page_types $page.Type | default false }}
|
|
|
|
- {{ $commentable_page := (ne $page.Params.commentable false) | and $commentable_page_type }}
|
|
|
|
|
|
+ {{ $commentable_page := $page.Params.commentable }}
|
|
{{ if (eq $comments_provider "disqus") | and (site.Params.comments.disqus.show_count | default true) | and $commentable_page }}
|
|
{{ if (eq $comments_provider "disqus") | and (site.Params.comments.disqus.show_count | default true) | and $commentable_page }}
|
|
<span class="middot-divider"></span>
|
|
<span class="middot-divider"></span>
|
|
<a href="{{ $page.RelPermalink }}#disqus_thread"><!-- Count will be inserted here --></a>
|
|
<a href="{{ $page.RelPermalink }}#disqus_thread"><!-- Count will be inserted here --></a>
|