diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 960f9c0..d670c16 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 4122086..abd76f6 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -38,7 +38,7 @@
{{- end }}
-
+
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}