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)) }}