如何将 Docs 页面设为默认主页

你好,
如何将 Discourse 的文档页面设置为首页?
谢谢!

1 个赞

您可以将此代码添加到您的主题中:

<script type="text/discourse-plugin" version="0.8">
  const { setDefaultHomepage } = require('discourse/lib/utilities');
  setDefaultHomepage("docs");
</script>
13 个赞

太棒了,这段代码成功了!
非常感谢!想哭。
再次感谢 @keegan

2 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.