# 是否有一种方法可以为子类别添加描述并在主页上显示？

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-add-descriptions-to-sub-categories-and-show-that-on-homepage/162347>\
**Category:** UX\
**Created:** [2020年八月28日 12:38 UTC](https://meta.discourse.org/t/is-there-a-way-to-add-descriptions-to-sub-categories-and-show-that-on-homepage/162347 "2020-08-28T12:38:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviaryan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aviaryan/32/191621_2.png) [@aviaryan](https://meta.discourse.org/u/aviaryan)\
**Post date:** [2020年八月28日 12:38 UTC](https://meta.discourse.org/t/is-there-a-way-to-add-descriptions-to-sub-categories-and-show-that-on-homepage/162347/1 "2020-08-28T12:38:52Z")

</div>

你好，  
我们能否为子分类添加描述，并在首页显示它们？

目前为止，我所见过的所有 Discourse 论坛都将子分类显示为带彩色圆点的简单超链接。我非常希望将子分类单独显示在一行中，并附带其描述。

我的灵感来自以下论坛。

在此先为尚未安装 Discourse 而无法确认是否可行表示歉意。

链接：[https://www.autohotkey.com/boards/](https://www.autohotkey.com/boards/)

 ![Screenshot 2020-08-28 at 5.56.02 PM](https://global.discourse-cdn.com/meta/original/3X/7/9/7932000d4550b233c85745d2bad3ef2fc9ad15eb.png)

 ![Screenshot 2020-08-28 at 5.56.11 PM](https://global.discourse-cdn.com/meta/original/3X/e/2/e2f25448016a2d49a0f1998cc71ed43fa4c3435b.png)

---

<div class="post-metadata">

**Author:** ![P2W](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/p2w/32/304345_2.png) [@P2W](https://meta.discourse.org/u/P2W)\
**Post date:** [2020年八月28日 12:43 UTC](https://meta.discourse.org/t/is-there-a-way-to-add-descriptions-to-sub-categories-and-show-that-on-homepage/162347/2 "2020-08-28T12:43:49Z")

</div>

如果您选择分类视图，关于帖子的第一句话会变成描述。

我其实正想把它关掉，哈哈。

---

<div class="post-metadata">

**Author:** ![aviaryan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aviaryan/32/191621_2.png) [@aviaryan](https://meta.discourse.org/u/aviaryan)\
**Post date:** [2020年八月28日 12:59 UTC](https://meta.discourse.org/t/is-there-a-way-to-add-descriptions-to-sub-categories-and-show-that-on-homepage/162347/3 "2020-08-28T12:59:11Z")

</div>

迈克，你能分享一张截图吗？

我还没有设置 Discourse。🙏

---

<div class="post-metadata">

**Author:** ![P2W](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/p2w/32/304345_2.png) [@P2W](https://meta.discourse.org/u/P2W)\
**Post date:** [2020年八月28日 13:12 UTC](https://meta.discourse.org/t/is-there-a-way-to-add-descriptions-to-sub-categories-and-show-that-on-homepage/162347/4 "2020-08-28T13:12:47Z")

</div>

访问 p2w.gg 并查看主页。每个类别旁边的“一般讨论”文本可以通过编辑该类别中的置顶“关于”主题帖，扩展为更详细的描述。

---

<div class="post-metadata">

**Author:** ![aviaryan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aviaryan/32/191621_2.png) [@aviaryan](https://meta.discourse.org/u/aviaryan)\
**Post date:** [2020年八月28日 13:37 UTC](https://meta.discourse.org/t/is-there-a-way-to-add-descriptions-to-sub-categories-and-show-that-on-homepage/162347/5 "2020-08-28T13:37:54Z")

</div>

谢谢。这是个有趣的冷知识。  
不过，我希望子类别的描述也能显示在首页上。

 ![Screenshot 2020-08-28 at 6.54.43 PM](https://global.discourse-cdn.com/meta/original/3X/5/c/5cb39823135e4a9bde5d3890d92f616053b2dad6.png)

我看到 Discourse 支持主题定制，所以也许这是可行的。[Add custom content that only appears on your homepage](https://meta.discourse.org/t/how-to-add-custom-content-that-only-appears-on-your-homepage/131415)

我可以修改首页模板，添加一些假标题来代表我的类别吗？不过我不确定这样做是否会影响实际类别列表的显示。

---

<div class="post-metadata">

**Author:** ![aviaryan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aviaryan/32/191621_2.png) [@aviaryan](https://meta.discourse.org/u/aviaryan)\
**Post date:** [2020年八月28日 13:38 UTC](https://meta.discourse.org/t/is-there-a-way-to-add-descriptions-to-sub-categories-and-show-that-on-homepage/162347/6 "2020-08-28T13:38:58Z")

</div>

关于在您这种情况下关闭这些描述，您能否将 `.category-description` 的 CSS 修改为 `display: none`？

鉴于 Discourse 支持主题定制，他们应该提供修改 CSS 的选项。
