diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a5f23da3..a49800be 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -61,13 +61,7 @@
links,
content,
}))
-
- {{if $.Site.Data.config.enableSPA}}
- {{ $router := resources.Get "js/router.js" | resources.Fingerprint "md5" |
- resources.Minify }}
-
+ {{if $.Site.Data.config.enableSPA}}
+ {{ $router := resources.Get "js/router.js" | resources.Fingerprint "md5" |
+ resources.Minify }}
+
{{else}}
-
+
{{end}}
{{ template "_internal/google_analytics.html" . }}