# 强调某些标签/无法决定如何使用它们

**URL:** <https://meta.discourse.org/t/emphasize-certain-tags-cant-decide-how-to-use-them/258193>\
**Category:** Support\
**Tags:** tags\
**Created:** [2023年三月15日 07:34 UTC](https://meta.discourse.org/t/emphasize-certain-tags-cant-decide-how-to-use-them/258193 "2023-03-15T07:34:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![shyguy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shyguy/32/295079_2.png) [@shyguy](https://meta.discourse.org/u/shyguy)\
**Post date:** [2023年四月1日 19:49 UTC](https://meta.discourse.org/t/emphasize-certain-tags-cant-decide-how-to-use-them/258193/3 "2023-04-01T19:49:26Z")

</div>

我的解决方案是创建一个带有重点标签的站点地图主题。

Discourse 是一个很棒的软件。我喜欢你可以在帖子编辑器中使用 `#` 来调用一个类别或标签（如果类别和标签同名存在歧义，可以附加 `::tag`）。

下面是一个例子：

```plaintext
# 站点地图

## #food

- #asia #europe #america
- #breakfast #lunch #dinner
- #noodle #soup #baking
- #technique #healthy

```

这允许我以任何我想要的顺序/组织方式来展示/强调标签的子集。

**剩下的问题是如何展示这个站点地图。**

我可以使用自定义侧边栏部分，但老实说，如果它属于侧边栏的任何地方，它应该属于顶部（社区）部分。或者在类别之上。

我可以用 JS 注入它，但希望有一天能编辑社区侧边栏部分的功能。

另外，我曾考虑过尝试创建一个主题组件，在主页上显示主题的内容。也许它已经存在了？

* * *

这是它外观的预览（标签是随意选择的）：

# #Support

- #Support > WordPress
- #docker #sidebar #chat #email
- #official #sso #themes #embedding #s3

# #Documentation

- #documentation:admins #documentation:moderators #documentation:users #documentation:sysadmin #documentation:theme-developers #documentation:devs
- #migrations

* * *

到目前为止，我遇到的两个最大的问题是：

1. 似乎[无法在帖子中调用 `#` 时悬停查看标签和类别描述](https://meta.discourse.org/t/how-do-users-see-tag-descriptions-on-mobile/210756/7)。
2. 对于在多个类别中使用的标签，如上所示，点击标签并没有太大用处。我可能需要链接到类似 `/tags/c/documentation/10/reference` 的地方，而不是 `/tags/reference`，这在某种程度上破坏了它的简洁性，但也不是不可接受。如果能做到类似 `#reference::category:documentation` → `/tags/c/documentation/10/reference` 这样的操作就太好了。

---

_[View the full topic](https://meta.discourse.org/t/emphasize-certain-tags-cant-decide-how-to-use-them/258193)._
