perf: change the resource address of the default comment component library to unpkg.com (#2098)

pull/2101/head
yhc 2022-05-19 02:59:34 -05:00 committed by GitHub
parent 8390752149
commit 6d4ac6b79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ public enum CommentProperties implements PropertyEnum {
* Dependent comment js.
*/
INTERNAL_PLUGIN_JS("comment_internal_plugin_js", String.class,
"//cdn.jsdelivr.net/npm/halo-comment@latest/dist/halo-comment.min.js"),
"https://unpkg.com/halo-comment@latest/dist/halo-comment.min.js"),
/**
* Gravatar mirror source base url.

View File

@ -61,8 +61,8 @@
<#-- comment module -->
<#macro comment target,type>
<#if !post.disallowComment!false>
<script src="//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script>
<script src="${options.comment_internal_plugin_js!'//cdn.jsdelivr.net/gh/halo-dev/halo-comment@latest/dist/halo-comment.min.js'}"></script>
<script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
<script src="${options.comment_internal_plugin_js!'https://unpkg.com/halo-comment@latest/dist/halo-comment.min.js'}"></script>
<halo-comment id="${target.id}" type="${type}"/>
</#if>
</#macro>