diff --git a/layouts/partials/hooks/body-end.html b/layouts/partials/hooks/body-end.html new file mode 100644 index 0000000000000..7ba3c56216784 --- /dev/null +++ b/layouts/partials/hooks/body-end.html @@ -0,0 +1,40 @@ +{{- /* Overrides themes/docsy/layouts/partials/hooks/body-end.html, called at the end + of the theme's scripts.html — which every one of our baseof templates loads. + The theme's own body-end only carries the Algolia docsearch placeholder, kept + verbatim below so overriding it loses nothing. */ -}} +{{ with .Site.Params.algolia_docsearch }} + +{{ end }} + +{{- /* Dismiss floating
dropdowns. + + A native
stays open until its own summary is clicked again, so + clicking anywhere else left the panel hanging over the page. Close them on an + outside click and on Escape, and let opening one close the others so only a + single panel is ever up. + + Scoped to the floating dropdowns by class. .dl-archived is deliberately not in + the list: it is an inline accordion rather than a floating panel, and should + stay where the reader put it. */ -}} +