From: XhmikosR Date: Wed, 17 Jul 2019 13:05:56 +0000 (+0300) Subject: Fix docs search. (#29067) X-Git-Tag: v5.0.0-alpha1~1009 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e864f65789ed5847b29f31a21e493dd8bef1490b;p=thirdparty%2Fbootstrap.git Fix docs search. (#29067) --- 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 }}