diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e53893d..86db932 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 81e4201..1badd4a 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)) }}