Skip to content

Commit

Permalink
refactor: comment component dependency import
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed May 24, 2022
1 parent 31e979a commit 67c0985
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions journals.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<#include "./module/highlightjs/libs-import.ftl" />
<#include "./module/lightgallery/libs-import.ftl" />
<#include "./module/katex/libs-import.ftl" />
<script src="${theme_base!}/assets/js/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>
</@layout.put>
<@layout.put block="content">
<@page_heading title="日志" subtitle="${journals.totalElements!} 篇" />
Expand Down
2 changes: 0 additions & 2 deletions module/comment.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<#macro comment post,type>
<#if !post.disallowComment!false>
<script src="${theme_base!}/assets/js/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>
<halo-comment id="${post.id?c}" type="${type}"></halo-comment>
</#if>
</#macro>
2 changes: 2 additions & 0 deletions post.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<#include "./module/highlightjs/libs-import.ftl" />
<#include "./module/lightgallery/libs-import.ftl" />
<#include "./module/katex/libs-import.ftl" />
<script src="${theme_base!}/assets/js/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>
</@layout.put>
<@layout.put block="content">
<@page_heading title="${post.title!}" subtitle="">
Expand Down
2 changes: 2 additions & 0 deletions sheet.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<@layout.put block="head">
<#include "./module/highlightjs/libs-import.ftl" />
<#include "./module/lightgallery/libs-import.ftl" />
<script src="${theme_base!}/assets/js/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>
</@layout.put>
<@layout.put block="content">
<@page_heading title="${post.title!}" subtitle="">
Expand Down

0 comments on commit 67c0985

Please sign in to comment.