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
```
wan92hen-patch-1
Ryan Wang 1 year ago committed by GitHub
parent 7e8a8ecb0d
commit df6ed25a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"

@ -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"

@ -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"

@ -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"

Loading…
Cancel
Save