# 适用于Discourse的Reddit风格主题

**URL:** https://meta.discourse.org/t/a-reddit-ish-theme-for-discourse/269466
**Category:** Theme
**Created:** [2023年六月23日 22:06 UTC](https://meta.discourse.org/t/a-reddit-ish-theme-for-discourse/269466 "2023-06-23T22:06:39Z")
**Posts on this page:** 1
**Showing post:** 127

<div class="post-metadata">

### Author: ![Damian\_Boon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/damian_boon/32/574032_2.png) [@Damian\_Boon](https://meta.discourse.org/u/Damian_Boon)
#### Post date: [2026年七月26日 01:43 UTC](https://meta.discourse.org/t/a-reddit-ish-theme-for-discourse/269466/127 "2026-07-26T01:43:15Z")

</div>

我一直在折腾这个超棒的主题，已经用了一段时间，现在想分享一下我做的改动。

1. 我去掉了主题列表上方的“创建主题”按钮，因为它导致人们在错误的分类下发帖。相反，我通过以下链接在页眉中添加了一个“创建帖子”菜单链接：

> [@自定义标题链接（图标）](https://meta.discourse.org/t/custom-header-links-icons/86307/212):
>
> [Introducing Font Awesome 5 and SVG icons](https://meta.discourse.org/t/introducing-font-awesome-5-and-svg-icons/101643) 你好，我无法渲染自定义 SVG 图标，希望你能帮助我找出问题所在。 我已将 SVG 文件上传到默认主题： 然后我已将以下内容添加到此主题组件中： [image] [image] 我已使用 icons-sprite、fa-icons-sprite 和 fab-icons-sprite，但 SVG 无法渲染。占位符存在，可以点击，链接也有效，但矩形中没有图标。 检查器显示此： \<svg class="fa d-icon d-icon-fab-icons-sprite svg-icon svg-string" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"\> \<use href="#fab-icons-sprite"\>\</use\> \</svg\>

1. 我很不喜欢右侧边栏不容易配置这一点。（我的建议是将右侧边栏模块作为标准功能添加到核心主题中）我通过以下代码将其隐藏：

```plaintext
.custom-right-sidebar {
        display: none;
}

```

然后安装了

> [@右侧边栏区块](https://meta.discourse.org/t/right-sidebar-blocks/231067?tl=en):
>
> discourse2摘要 右侧边栏模块 在主题列表右侧显示一个侧边栏，其中包含可配置的模块列表。eyeglasses预览 [在 Discourse 主题创建器上预览](https://discourse.theme-creator.io/theme/Discourse/right-sidebar-blocks)hammer_and_wrench仓库链接 [https://github.com/discourse/discourse-right-sidebar-blocks](https://github.com/discourse/discourse-right-sidebar-blocks)open_bookDiscourse 主题新手？ [Discourse 主题使用新手指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) 安装此主题组件 功能 该组件包含几个可在侧边栏中显示的模块： popular-tags top-contributors recent-replies category-topics custom-html category-list subcategory-list upcoming-events-list\* minimal-gamification-leaderboard\*\*information_source 必须启用用户目录，才能填充“顶级贡献者”列表。如果您的列表为空，请在管理员设…

1. 接着，我创建了一个主题组件，使侧边栏固定并可滚动，类似于 Reddit。我也把它添加到了主题页面中，但发现有点分散注意力，所以最终将其移除。

2. 我在主题列表中的回复旁边添加了点赞功能，并进行了样式调整：

> [@在主题列表和分类中显示点赞数 - Redditish 主题](https://meta.discourse.org/t/show-likes-on-topics-lists-and-categories-redditish-theme/408517/7):
>

在桌面端访问 [https://www.carptalk-online.co.uk/](https://www.carptalk-online.co.uk/) 时可以看到这些示例。

 ![Screenshot 2026-07-26 014114](https://global.discourse-cdn.com/meta/original/4X/0/e/9/0e970adaa4a54667755dfca58f5b8989fe1cfcde.jpeg)  
 ![Screenshot 2026-07-26 020849](https://global.discourse-cdn.com/meta/original/4X/9/5/3/9539d94c798b7015d13e5610d894a54664559ddf.jpeg)  
 ![Screenshot 2026-07-26 022632](https://global.discourse-cdn.com/meta/original/4X/1/5/b/15be2a3e14d1c48dea6717307e2027361fb4421d.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/a-reddit-ish-theme-for-discourse/269466)._
