mirror of https://github.com/halo-dev/halo
perf: change the resource address of the default comment component library to unpkg.com (#2098)
parent
8390752149
commit
6d4ac6b79f
|
@ -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.
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue