更新版本1.3.0
This commit is contained in:
parent
dca34b3bfb
commit
9a703696cb
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "halo-theme-hao",
|
||||
"version": "1.2.0",
|
||||
"version": "1.3.0",
|
||||
"dependencies": {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2443,8 +2443,8 @@ spec:
|
|||
options:
|
||||
- label: 本地
|
||||
value: local
|
||||
- label: elemecdn
|
||||
value: elemecdn
|
||||
- label: onmicrosoft
|
||||
value: onmicrosoft
|
||||
- label: 自定义
|
||||
value: custom
|
||||
- $formkit: url
|
||||
|
@ -2452,8 +2452,8 @@ spec:
|
|||
if: "$get(use).value == 'custom'"
|
||||
label: cdn地址,外链地址
|
||||
validation: required
|
||||
value: 'https://npm.elemecdn.com/hao-theme-static@1.1.5/templates/assets'
|
||||
help: '默认为npmJs的elemecdn加速地址,如果你有自己的cdn地址(请确保链接下assets文件夹下主题静态资源文件),可以填写,否则请勿修改! '
|
||||
value: 'https://npm.onmicrosoft.cn/hao-theme-static@1.3.0/templates/assets'
|
||||
help: '默认为npmJs的onmicrosoft加速地址,如果你有自己的cdn地址(请确保链接下assets文件夹下主题静态资源文件),可以填写,否则请勿修改! '
|
||||
- $formkit: group
|
||||
name: diytitle
|
||||
label: 动态标题
|
||||
|
|
|
@ -178,7 +178,7 @@
|
|||
th:src="${assets_link + '/libs/welcome/welcome.js'}"></script>
|
||||
|
||||
<!-- icon图标 -->
|
||||
<link rel="stylesheet" th:href="'https://npm.elemecdn.com/hao-theme-static@'+${theme.spec.version}+'/icon/iconfont.css'">
|
||||
<link rel="stylesheet" th:href="'https://npm.onmicrosoft.cn/hao-theme-static@'+${theme.spec.version}+'/icon/iconfont.css'">
|
||||
|
||||
|
||||
<!-- 代码块自动识别语言 -->
|
||||
|
@ -223,7 +223,7 @@
|
|||
css: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/fancybox/3.5.7/jquery.fancybox.min.css'
|
||||
},
|
||||
twikoo:{
|
||||
js: '/themes/theme-hao/assets/libs/twikoo/twikoo.all.min.js',
|
||||
js: [[${assets_link}]]+'/libs/twikoo/twikoo.all.min.js',
|
||||
maxBarrage: [[${ theme.config.comments.twikoos.maxBarrage }]],
|
||||
barrageTime: [[${ theme.config.comments.twikoos.barrageTime }]],
|
||||
twikooUrl: "[(${theme.config.comments.twikoos.envId})]",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" th:fragment="layout(content, htmlType)" xmlns:th="http://www.thymeleaf.org"
|
||||
th:with="assets_link=${theme.config.other.staticResource.use == 'elemecdn' ? 'https://npm.elemecdn.com/hao-theme-static@' + theme.spec.version +'/templates/assets' :
|
||||
th:with="assets_link=${theme.config.other.staticResource.use == 'onmicrosoft' ? 'https://npm.onmicrosoft.cn/hao-theme-static@' + theme.spec.version +'/templates/assets' :
|
||||
theme.config.other.staticResource.use == 'custom' ? theme.config.other.staticResource.cdn_link : #theme.assets('/')}">
|
||||
|
||||
<!-- head 中自定义的 -->
|
||||
|
|
|
@ -51,5 +51,5 @@ spec:
|
|||
repo: https://github.com/liuzhihang/halo-theme-hao
|
||||
settingName: "theme-hao-setting"
|
||||
configMapName: "theme-hao-configMap"
|
||||
version: "1.2.0"
|
||||
version: "1.3.0"
|
||||
require: ">=2.6.0"
|
||||
|
|
Loading…
Reference in New Issue