feat(patch): 去除补丁模式

This commit is contained in:
nineya 2023-07-13 09:33:44 +08:00
parent 6e0a72ad93
commit 50596ec29d
2 changed files with 1 additions and 13 deletions

View File

@ -917,7 +917,7 @@ spec:
label: 卸载
- $formkit: radio
name: enable_pjax
label: Pjax加载
label: Pjax 加载
value: false
help: '使用Pjax加载可极大提升页面跳转的速度但可能和部分插件不兼容。'
options:
@ -974,16 +974,6 @@ spec:
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: enable_patch
label: 补丁模式
value: true
help: '引入补丁脚本,实现对部分异常不更新主题进行 bug 修复!'
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: enable_busuanzi
label: 开启 busuanzi 访客统计

View File

@ -44,9 +44,7 @@ th:with="description=${isPost ? post != null ? post.status.excerpt : singlePage
<script th:src="@{/assets/lib/jquery@3.5.1/jquery.min.js}"></script>
<script th:if="${theme.config.enhance.enable_patch}" src="//cdn.jsdelivr.net/gh/nineya/halo-theme-dream@master/src/patch.js"></script>
<link th:if="${!#strings.isEmpty(theme.config.custom.external_css)}" rel="stylesheet" th:href="${theme.config.custom.external_css}">
<style th:if="${!#strings.isEmpty(theme.config.custom.inline_css)}" type="text/css" th:text="${theme.config.custom.inline_css}"></style>
[(${theme.config.custom.external_js_head})]
<script th:if="${!#strings.isEmpty(theme.config.custom.inline_js_head)}" type="text/javascript" th:text="${theme.config.custom.inline_js_head}">