Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/scripts.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index aed0885..18d83d5 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -242,14 +242,15 @@
<script id="dsq-count-scr" src="//{{ .Site.DisqusShortname }}.disqus.com/count.js" async></script>
{{ end }}
-{{ if .Site.Params.remark42Url }}
+{{ if and .Site.Params.remark42Url (or .Page.IsPage .IsHome) }}
<script>
var remark_config = {
host: '{{ .Site.Params.remark42Url }}',
site_id: '{{ .Site.Params.remark42SiteId | default "remark" }}',
components: [
+{{- if .Page.IsPage }}
'embed',
-{{ if and .Site.Params.commentCount.remark42.enable (not .Page.IsPage) -}}
+{{- else if and .Site.Params.commentCount.remark42.enable .IsHome }}
'counter',
{{- end }}
],