如何创建带有安装按钮的#Themes帖子

有人能给我解释一下如何像在 #themes 类别中那样创建带有安装按钮的帖子吗?我该如何创建这样的帖子?

[wrap=theme-install-button repoUrl="GITHUB REPO URL" repoName="EXAMPLE"]
安装此主题组件
[/wrap]

6 个赞

它不起作用,只显示文本“安装此主题组件”

我想知道如何做同样的事情,将图标、文字和按钮放在底部

如果你不是在使用 Meta 进行此操作,你可能需要 Meta 使用的任何 TC。 (我也不知道那是什么或在哪里)

如果你是在 Meta 上进行此操作,它应该可以正常工作。

随机示例 #theme-component 主题

Top Contributors Sidebar
原始:

[wrap=theme-install-button repoUrl="https://github.com/discourse/discourse-top-contributors-sidebar" repoName="Discourse Top Contributors Sidebar"]
Install this theme component
[/wrap]

解析后:

Install this theme component

2 个赞

我们有一个专门的插件,但不幸的是,它目前无法供其他网站使用。

1 个赞