mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 08:29:40 +08:00
优化katex
This commit is contained in:
parent
55628bb060
commit
8cae18fec5
@ -149,7 +149,7 @@ $(document).on('pjax:success', async function (event, data, status, xhr, options
|
||||
let $scripts = $currentTarget.filter('script').filter(function() {
|
||||
const isDataPjax = $(this).is('[data-pjax]')
|
||||
const src = $(this).attr('src')
|
||||
const isStaticPath = src && (src.startsWith('/plugins/PluginHighlightJS/') || src.startsWith('/plugins/plugin-katex/'))
|
||||
const isStaticPath = src && (src.startsWith('/plugins/PluginHighlightJS/'))
|
||||
return isDataPjax || isStaticPath
|
||||
})
|
||||
if ($scripts.length > 0) {
|
||||
|
2
templates/assets/js/pjax.min.js
vendored
2
templates/assets/js/pjax.min.js
vendored
File diff suppressed because one or more lines are too long
@ -10,6 +10,7 @@
|
||||
<script th:if="${enableShare}" data-pjax th:src="@{/assets/js/dshare.min.js(mew=${theme.spec.version})}"></script>
|
||||
<script th:if="${isPost}" data-pjax th:src="@{/assets/js/post.min.js(mew=${theme.spec.version})}"></script>
|
||||
<script th:if="${isJournals}" data-pjax th:src="@{/assets/js/journals.min.js(mew=${theme.spec.version})}"></script>
|
||||
<script th:if="${pluginFinder.available('plugin-katex')}" data-pjax src="/plugins/plugin-katex/assets/static/katex.min.js"></script>
|
||||
</th:block>
|
||||
<script th:if="${isPhotos}" data-pjax th:src="@{/assets/lib/justifiedGallery@3.8.1/jquery.justifiedGallery.min.js}"></script>
|
||||
|
||||
|
@ -30,7 +30,7 @@ spec:
|
||||
settingName: theme-dream2-plus-setting
|
||||
configMapName: theme-dream2-plus-configMap
|
||||
# 版本号
|
||||
version: 1.3.8.beta4
|
||||
version: 1.3.8.beta5
|
||||
# 最低支持的 Halo 版本
|
||||
require: ">=2.20.0"
|
||||
# 许可
|
||||
|
Loading…
x
Reference in New Issue
Block a user