From 70775d9ebb23519d3a2fc633a36741d629ab4bba Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Mon, 6 Jun 2022 16:14:11 +0200 Subject: don't embed remark42 on pages without comments form Now remark42 configuration won't be loaded on pages where neither comment form nor comments counter are present. --- layouts/partials/scripts.html | 5 +++-- 1 file 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 @@ {{ end }} -{{ if .Site.Params.remark42Url }} +{{ if and .Site.Params.remark42Url (or .Page.IsPage .IsHome) }}