mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-21 18:24:58 +00:00
docs: refine documentation of halo:comment tag (#281)
从 Halo 2.9 开始,判断评论组件是否显示的条件不再只是单纯的判断评论插件是否安装。 see https://github.com/halo-dev/halo/pull/4271 /kind documentation ```release-note None ```
This commit is contained in:
@@ -14,7 +14,8 @@ Halo 为满足部分代码注入和模板扩展点的需求,提供了一些专
|
||||
### 使用示例
|
||||
|
||||
```html title="/templates/post.html"
|
||||
<div th:if="${pluginFinder.available('PluginCommentWidget')}">
|
||||
<!-- 需要判断当前评论组件是否满足显示的条件,这个变量可能是是否安装评论插件、文章是否开启评论等条件的组合 -->
|
||||
<div th:if="${haloCommentEnabled}">
|
||||
<halo:comment
|
||||
group="content.halo.run"
|
||||
kind="Post"
|
||||
|
Reference in New Issue
Block a user