# 没有子类别的子类别和类别不显示浏览/回复计数

**URL:** https://meta.discourse.org/t/subcategories-and-categories-with-no-subcategories-dont-show-views-reply-counts/398418
**Category:** Support
**Tags:** ghost-theme
**Created:** [2026年三月13日 22:19 UTC](https://meta.discourse.org/t/subcategories-and-categories-with-no-subcategories-dont-show-views-reply-counts/398418 "2026-03-13T22:19:29Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [2026年三月16日 14:20 UTC](https://meta.discourse.org/t/subcategories-and-categories-with-no-subcategories-dont-show-views-reply-counts/398418/7 "2026-03-16T14:20:44Z")

</div>

@shapelychops 更新：我已经更改了结构，因此自定义元素现在应该始终出现——如果仍然有问题请告诉我

> <https://github.com/discourse/discourse/pull/38620>
>
> The topic-list-after-category and topic-list-before-category outlets are current…ly nested inside {{#unless @hideCategory}} / {{#unless @topic.isPinnedUncategorized}}, so any theme content rendered through them disappears when the category isn't shown (e.g. when viewing a category's topic list).
> 
> This moves the outlets outside those conditionals so they always render. Known usages in all-the-themes:
> - discourse-mobile-topic-op-and-last-reply
> - md-topic-list-mobile
> - md-topic-list
> - discourse-redditish-theme

---

_[View the full topic](https://meta.discourse.org/t/subcategories-and-categories-with-no-subcategories-dont-show-views-reply-counts/398418)._
