From e864f65789ed5847b29f31a21e493dd8bef1490b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 17 Jul 2019 16:05:56 +0300 Subject: [PATCH] Fix docs search. (#29067) --- site/layouts/partials/scripts.html | 2 +- site/layouts/partials/stylesheet.html | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html index e2f9bc407e..4b909e0e48 100644 --- a/site/layouts/partials/scripts.html +++ b/site/layouts/partials/scripts.html @@ -4,7 +4,7 @@ {{- end }} -{{ if eq .Page.Layout "docs" -}} +{{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}} {{- end }} diff --git a/site/layouts/partials/stylesheet.html b/site/layouts/partials/stylesheet.html index 749a3314e6..d6d95ae6bf 100644 --- a/site/layouts/partials/stylesheet.html +++ b/site/layouts/partials/stylesheet.html @@ -5,12 +5,10 @@ {{- end }} -{{ if (or (eq .Page.Layout "docs") (ne .Page.Layout "examples")) -}} +{{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}} {{- "" | safeHTML }} -{{ if eq .Page.Layout "docs" -}} {{- end -}} {{- if (ne .Page.Layout "examples") }} -{{- end -}} {{- end }}