Skip to content

Commit

Permalink
perf: change the resource address of the default comment component li…
Browse files Browse the repository at this point in the history
…brary to unpkg.com
  • Loading branch information
Yhcrown committed May 19, 2022
1 parent 8390752 commit 8538bfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/common/macro/global_macro.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
<#-- comment module -->
<#macro comment target,type>
<#if !post.disallowComment!false>
<script src="//cdn.jsdelivr.net/npm/[email protected].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/[email protected].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>

0 comments on commit 8538bfe

Please sign in to comment.