mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 22:49:44 +00:00
refactor: remove deprecated bootcdn
param
This commit is contained in:
parent
259d3dec1a
commit
8c2030327f
3 changed files with 2 additions and 9 deletions
|
@ -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文件)
|
||||
|
|
|
@ -62,9 +62,7 @@
|
|||
|
||||
<!-- Styles -->
|
||||
<link href="{{ "dist/even.min.css?v=2.7.2" | relURL }}" rel="stylesheet">
|
||||
{{ if .Site.Params.bootcdn -}}
|
||||
{{ if .Site.Params.fancybox }}<link href="https://cdn.bootcss.com/fancybox/3.1.20/jquery.fancybox.min.css" rel="stylesheet" crossorigin="anonymous">{{ 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 }}<link href="{{ "lib/fancybox/jquery.fancybox-3.1.20.min.css" | relURL }}" rel="stylesheet">{{ end }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue