diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d721a57..ed233bf 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -62,7 +62,7 @@
{{- end }}
-
+
{{ if .Site.Params.bootcdn -}}
{{ if .Site.Params.fancybox }}{{ end }}
{{- else if .Site.Params.publicCDN.enable -}}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 83ad1ac..1a284ee 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -13,7 +13,7 @@
{{ if .Site.Params.fancybox }}{{ end }}
{{- end }}
-
+
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}