From 5fb5a658e8ec8f26c4cb67bc306d1827b781962c Mon Sep 17 00:00:00 2001
From: olOwOlo <26087907+olOwOlo@users.noreply.github.com>
Date: Tue, 12 Sep 2017 23:59:08 +0800
Subject: feat: config public cdn
deprecated bootcdn param
---
layouts/partials/scripts.html | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
(limited to 'layouts/partials/scripts.html')
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 72bc938..5e1c637 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,10 +1,14 @@
{{ if .Site.Params.bootcdn -}}
-
-
- {{ if .Site.Params.fancybox }}{{ end }}
-{{ else -}}
+
+
+ {{ if .Site.Params.fancybox }}{{ end }}
+{{- else if .Site.Params.publicCDN.enable -}}
+ {{ .Site.Params.publicCDN.jquery | safeHTML }}
+ {{ .Site.Params.publicCDN.slideout | safeHTML }}
+ {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxJs | safeHTML }}{{ end }}
+{{- else -}}
{{ if .Site.Params.fancybox }}{{ end }}
--
cgit v1.2.3