diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index ac2bed23..7f62cfd4 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -7,8 +7,6 @@
{{ if .Site.Params.google_maps_api_key }}
- {{ else }}
-
{{ end }}
{{ if not .Site.Params.disable_sri }}
@@ -16,14 +14,18 @@
{{ printf "" $js.imagesLoaded.version $js.imagesLoaded.sri | safeHTML }}
{{ printf "" $js.bootstrap.version $js.bootstrap.sri | safeHTML }}
{{ printf "" $js.isotope.version $js.isotope.sri | safeHTML }}
+ {{ if .Site.Params.google_maps_api_key }}
{{ printf "" $js.gmaps.version $js.gmaps.sri | safeHTML }}
+ {{ end }}
{{ else }}
+ {{ if .Site.Params.google_maps_api_key }}
{{ end }}
+ {{ end }}
{{ range .Site.Params.custom_js }}