diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index c87ddf6..fb4dad6 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -61,7 +61,7 @@
{{- end }}
-
+
{{ if .Site.Params.publicCDN.enable -}}
{{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCss | safeHTML }}{{ end }}
{{- else -}}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index ad79dce..cb26278 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -9,7 +9,7 @@
{{ if .Site.Params.fancybox }}{{ end }}
{{- end }}
-
+
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}