From 8c2030327fd534e2cdb267b76ac67c04de275e63 Mon Sep 17 00:00:00 2001
From: olOwOlo <26087907+olOwOlo@users.noreply.github.com>
Date: Wed, 31 Jan 2018 22:14:48 +0800
Subject: refactor: remove deprecated `bootcdn` param
---
 exampleSite/config.toml       | 1 -
 layouts/partials/head.html    | 4 +---
 layouts/partials/scripts.html | 6 +-----
 3 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index bfb229c..cd33aed 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -65,7 +65,6 @@ copyright = ""            # default: author.name ↓        # 默认为下面配
   toc = true                                                                            # 是否开启目录
   autoCollapseToc = false   # Auto expand and collapse toc                              # 目录自动展开/折叠
   fancybox = true           # see https://github.com/fancyapps/fancybox                 # 是否启用fancybox(图片可点击)
-  bootcdn = false           # In china. @Deprecated: use [params.publicCDN]             # 是否使用bootcdn(@Deprecated: 请使用[params.publicCDN])
   mathjax = false           # see https://www.mathjax.org/                              # 是否使用mathjax(数学公式)
   mathjaxEnableSingleDollar = false                                                     # 是否使用 $...$ 即可進行inline latex渲染
   linkToMarkDown = false    # if you config contentCopyright and hugo output .md files. # 是否在链接到markdown原始文件(如果你配置了下面的许可协议并允许hugo生成markdown文件)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f60cac6..c87ddf6 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -62,9 +62,7 @@
 
 
 
-{{ if .Site.Params.bootcdn -}}
-  {{ if .Site.Params.fancybox }}{{ end }}
-{{- else if .Site.Params.publicCDN.enable -}}
+{{ if .Site.Params.publicCDN.enable -}}
   {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCss | safeHTML }}{{ end }}
 {{- else -}}
   {{ if .Site.Params.fancybox }}{{ end }}
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 @@
 
 
-{{ if .Site.Params.bootcdn -}}
-  
-  
-  {{ if .Site.Params.fancybox }}{{ 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 }}
-- 
cgit v1.2.3