Discourse 自定义头部链接(Custom Header Links)
Discourse 的头部链接是没有办法自定义的,我们使用下面的这个插件来进行配置
可以从 Git 代码仓库中进行安装,有关这个插件的官方讨论地址为:Custom Header Links - theme-component - Discourse Meta
我们 Fork 了这个插件:Fork 后的插件的地址为:GitHub - Discourse-C/discourse-custom-header-links
安装效果
安装后的效果如下面的图片。
桌面

移动界面
因为移动空间的限制,我们不建议在移动界面中显示更多的内容。

安装方法
从 Git 代码仓库中进行安装。
进入后台中的主题管理,然后选择安装。

然后可以选择从 Git 仓库中进行安装。

在仓库地址中,输入你需要安装的仓库地址。
在本例中,我们使用的地址为:Discource-C/discourse-custom-header-links - discourse-custom-header-links - OSSEZ SRC
当然,你也可以使用官方的地址来进行安装的。
如果一切顺利,则显示安装成功。

当然,在这里,你需要选择应用的主题才可以让你安装的插件生效。

然后你就可以在你的界面中看到启用的插件了,并查看产生的效果。
评论