Update anatole theme.

pull/151/head
ruibaby 2019-05-09 21:18:28 +08:00
parent 07f8cc0fbd
commit cfaa73aec2
5 changed files with 99 additions and 13 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,7 @@
<#macro comment id,type> <#macro comment post,type>
<#if !post.disallowComment!false>
<script src="//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script> <script src="//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script>
<script src="/static/js/halo-comment.min.js"></script> <script src="/static/js/halo-comment.min.js"></script>
<halo-comment id="${id}" type="${type}"/> <halo-comment id="${post.id}" type="${type}"/>
</#if>
</#macro> </#macro>

View File

@ -93,7 +93,7 @@
</div> </div>
<div id="comment_widget"> <div id="comment_widget">
<#include "module/comment.ftl"> <#include "module/comment.ftl">
<@comment id="${post.id}" type="post" /> <@comment post="${post!}" type="post" />
</div> </div>
</div> </div>
</div> </div>

View File

@ -73,7 +73,7 @@
</div> </div>
<div id="comment_widget"> <div id="comment_widget">
<#include "module/comment.ftl"> <#include "module/comment.ftl">
<@comment id="${sheet.id!}" type="sheet" /> <@comment post="${sheet!}" type="sheet" />
</div> </div>
</div> </div>
</div> </div>