# Discourse 类别前 icon 需要 font awesome 的支持

**URL:** <https://www.isharkfly.com/t/discourse-icon-font-awesome/16261>\
**Category:** Discourse\
**Tags:** discourse\
**Created:** [September 9, 2024, 7:25pm UTC](https://www.isharkfly.com/t/discourse-icon-font-awesome/16261 "2024-09-09T19:25:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Lhcfl](https://www.isharkfly.com/user_avatar/www.isharkfly.com/lhcfl/32/14361_2.png) [@Lhcfl](https://www.isharkfly.com/u/Lhcfl)\
**Post date:** [September 10, 2024, 2:42am UTC](https://www.isharkfly.com/t/discourse-icon-font-awesome/16261/2 "2024-09-10T02:42:31Z")

</div>

那是因为 java 属于 brand 分类的图标，你应该要写成 `fab-java`

参见 [Introducing Font Awesome 5 and SVG icons - announcements - Discourse Meta](https://meta.discourse.org/t/introducing-font-awesome-5-and-svg-icons/101643)

 ![image](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/2X/9/9a536edc4b148a1676d7d34c195cdc7faf4bee62.png)

写成 fab-java 就能用了

 ![image](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/2X/3/3f424a5e1a5c83098e71fd7cf4a147808ea1dc8e.png)

---

_[View the full topic](https://www.isharkfly.com/t/discourse-icon-font-awesome/16261)._
