From 6c64ad06955610af201ab92a72a2ee1eb03a988a Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 10 Apr 2021 11:53:23 +0530 Subject: [PATCH] Show Code Copy scripts only on Kind = page --- layouts/_default/baseof.html | 2 +- layouts/partials/footer.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e53893da..86db932f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,7 @@
{{- block "main" . }}{{ end }}
- {{ partialCached "footer.html" . -}} + {{ partialCached "footer.html" . .Layout .Kind -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 81e4201d..1badd4a6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -85,7 +85,7 @@ {{- end }} -{{- if (not .Site.Params.disableCodeCopy) }} +{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not .Site.Params.disableCodeCopy)) }}