自定义页面支持设置是否允许评论

This commit is contained in:
liuzhihang 2023-01-04 21:47:19 +08:00
parent 5eac3756b2
commit ddffbd4e1e
3 changed files with 19 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "halo-theme-hao",
"version": "1.0.4",
"version": "1.0.5",
"dependencies": {
}
}

View File

@ -12,6 +12,23 @@
<main class="layout hide-aside" id="content-inner">
<div id="page">
<div id="article-container line-numbers" th:utext="${singlePage.content.content}"></div>
<hr>
<!-- 评论模块 -->
<div id="post-comment"
th:if="${pluginFinder.available('PluginCommentWidget') and singlePage.spec.allowComment}">
<div class="comment-head">
<div class="comment-headline"><i class="iconfont icon-comment-alt"></i> <span>评论</span></div>
<div class="comment-privacy"><a href="#">隐私政策</a></div>
<div class="comment-tips" id="comment-tips">
<span>你无需删除空行,直接评论以获取最佳展示效果</span>
</div>
</div>
<halo:comment group="content.halo.run" kind="SinglePage"
th:attr="name=${singlePage.metadata.name}"/>
</div>
</div>
<!-- 侧栏 -->

View File

@ -13,5 +13,5 @@ spec:
repo: 'https://github.com/liuzhihang/halo-theme-hao'
settingName: "theme-hao-setting"
configMapName: "theme-hao-configMap"
version: 1.0.4
version: 1.0.5
require: 2.0.0