diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 94c7914fba..6720b4e690 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -58,8 +58,8 @@
{{ define "algolia/head" -}}
{{ if and .Site.Params.search (isset .Site.Params.search "algolia") -}}
-
{{ end -}}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index bf96e21ec9..8b40bcff7f 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -108,8 +108,8 @@
{{ partial "hooks/body-end.html" . -}}
{{ define "algolia/scripts" -}}
-