aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/scripts.html
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-01-31 22:14:48 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-01-31 22:14:48 +0800
commit8c2030327fd534e2cdb267b76ac67c04de275e63 (patch)
treee130886adeef0ad7f99f3c8a920de7a0dd0f98c8 /layouts/partials/scripts.html
parent259d3dec1ae78e617b76ebeecd357218702d3d30 (diff)
refactor: remove deprecated `bootcdn` param
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r--layouts/partials/scripts.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 2cfa68a..ad79dce 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,10 +1,6 @@
<!-- js -->
<script src="{{ "lib/highlight/highlight.pack.js?v=20171001" | relURL }}"></script>
-{{ if .Site.Params.bootcdn -}}
- <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js" crossorigin="anonymous"></script>
- <script type="text/javascript" src="https://cdn.bootcss.com/slideout/1.0.1/slideout.min.js" crossorigin="anonymous"></script>
- {{ if .Site.Params.fancybox }}<script type="text/javascript" src="https://cdn.bootcss.com/fancybox/3.1.20/jquery.fancybox.min.js" crossorigin="anonymous"></script>{{ end }}
-{{- else if .Site.Params.publicCDN.enable -}}
+{{- 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 }}