mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind feature /area core /milestone 2.17.x #### What this PR does / why we need it: 此次变更为文章分类引入了一个新的 `preventParentPostCascadeQuery` 布尔属性,用于控制分类及其子分类下的文章显示方式。具体变更包括: - 在分类结构中增加了 `preventParentPostCascadeQuery` 属性。 - 当分类的 `preventParentPostCascadeQuery` 属性设置为 `true` 时,该分类的文章数量不会汇总到父分类中。 - 更新了树结构遍历逻辑,以支持对 `preventParentPostCascadeQuery` 属性的处理。 - 确保独立分类中的文章显示受控,不向上级分类进行聚合。 - 增加了相应的测试用例,以验证在不同树结构中 `preventParentPostCascadeQuery` 属性的功能性。 #### Which issue(s) this PR fixes: Fixes #5663 Fixes #4923 Fixes https://github.com/halo-dev/halo/issues/3418 #### Does this PR introduce a user-facing change? ```release-note 新增独立分类选项用于控制关联的子分类下的文章显示以提供更灵活的内容管理方式 ``` |
||
---|---|---|
.. | ||
_components | ||
attachments | ||
comments | ||
pages | ||
posts |