diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index ccfef5e7..b07b8ad8 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -98,14 +98,13 @@
{{ if or .Site.Params.photoswipe .Site.Params.fancybox }}
+
{{ if .Site.Params.bootcdn }}
-
{{ else if .Site.Params.publicCDN.enable }}
-
{{ .Site.Params.publicCDN.photoswipe | safeHTML }}
{{ .Site.Params.publicCDN.photoswipeUI | safeHTML }}
{{ else }}