fix(cdn): 将评论组件放到本地组件中。并添加到 CDN 中。 升级版本为 1.3.4

This commit is contained in:
LIlGG 2022-04-05 00:35:38 +08:00
parent 8374720788
commit be22153fab
4 changed files with 23 additions and 7 deletions

View File

@ -268,7 +268,7 @@
<#if settings.post_toc!true>
<script src="${res_base_url!}/source/lib/tocbot/dist/tocbot.min.js" defer></script>
</#if>
<script src="${settings.comment_mode!'//cdn.jsdelivr.net/gh/LIlGG/halo-comment-sakura@v1.3.3/dist/halo-comment.min.js'}" defer></script>
<script src="${settings.comment_mode!'${res_base_url!}/source/js/comment/sakura-comment.min.js?ver=${theme.version!}'}" defer></script>
<#if settings.tag_cloud!true>
<script src="${res_base_url!}/source/lib/jqcloud2/jqcloud.min.js" defer></script>
<script type='text/javascript'>
@ -296,7 +296,7 @@
<script type='text/javascript' src='${res_base_url!}/source/js/qrcode.min.js' defer></script>
<script type='text/javascript' src='${res_base_url!}/source/lib/flv.min/index.js' defer></script>
<script type='text/javascript' src='${res_base_url!}/script/i18n.min.js?ver=${theme.version!}' defer></script>
<script type='text/javascript' src='${theme_base!}/script/app.js?ver=${theme.version!}'></script>
<script type='text/javascript' src='${theme_base!}/script/app.min.js?ver=${theme.version!}'></script>
<#nested />
<#if settings.live2d_switch!true>
<script src="${res_base_url!}/source/lib/jquery-ui/jquery-ui.min.js" async defer></script>

View File

@ -635,8 +635,7 @@ comment:
name: comment_mode
label: 评论模块js
type: text
default: "https://cdn.jsdelivr.net/gh/LIlGG/halo-comment-sakura/dist/halo-comment.min.js"
description: "评论 js 模块,如果当前设置为空,则使用评论设置中的模块 js"
description: "评论 js 模块,如果当前设置为空,则使用本地服务器中的评论 js"
comment_auto_load:
name: comment_custom_style
label: 是否自动加载评论列表
@ -1998,12 +1997,12 @@ others:
name: 回到顶部图片
label: 回到顶部图片
type: attachment
default: "https://cdn.jsdelivr.net/gh/LIlGG/cdn@1.0.8/img/Sakura/images/scroll.png"
default: "https://takagi-api.com/directlink/1/cdn/1.0.8/img/Sakura/images/scroll.png"
footer_logo:
name: footer_logo
label: 页脚 Logo
type: attachment
default: "https://cdn.jsdelivr.net/gh/LIlGG/cdn@1.0.8/img/Sakura/images/sakura.svg"
default: "https://takagi-api.com/directlink/1/cdn/1.0.8/img/Sakura/images/sakura.svg"
footer_case_number:
name: footer_case_number
label: ICP 备案信息

17
source/js/comment/sakura-comment.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -7,5 +7,5 @@ description: Halo 版本的樱花🌸主题
logo:
website: https://github.com/LIlGG/halo-theme-sakura
repo: https://github.com/LIlGG/halo-theme-sakura
version: 1.3.3
version: 1.3.4
require: 1.5.0