# 如何在主站首页显示最新讨论

**URL:** https://meta.discourse.org/t/how-to-show-the-latest-discussion-on-the-front-page-of-our-main-website/220346
**Category:** Support
**Created:** [2022 年3 月 7 日 17:57 UTC](https://meta.discourse.org/t/how-to-show-the-latest-discussion-on-the-front-page-of-our-main-website/220346 "2022-03-07T17:57:19Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### 作者： ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### 发布日期： [2022 年3 月 7 日 18:04 UTC](https://meta.discourse.org/t/how-to-show-the-latest-discussion-on-the-front-page-of-our-main-website/220346/2 "2022-03-07T18:04:32Z")

</div>

您可以在网站上嵌入 Discourse：

> [@Embedding a list of Discourse Topics in another site](https://meta.discourse.org/t/embedding-a-list-of-discourse-topics-in-another-site/125911):
>
> If you grab the latest builds of Discourse you’ll get a [the ability to embed topic lists](https://github.com/discourse/discourse/commit/23367e79ea735598766ec6f507f6132e0bad3dba) in other sites via some simple Javascript and HTML. The typical use case for this is a blog or other content driven site, where you want a widget on the side of the screen that lists topics. You can filter by category, tag, or [any of the other public](https://github.com/discourse/discourse/blob/master/lib/topic_query.rb#L51-L73) filter options available. How to Embed a list of Topics First, you must enable the embed topics list site setting. Then, in your HTML add a \<script\> tag tha…

> [@Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963):
>
> Discourse has the ability to embed the comments from a topic in a remote site using a Javascript API that creates an IFRAME. For an example of this in action, check out [Coding Horror’s blog](http://blog.codinghorror.com/welcome-to-the-internet-of-compromised-things/#discourse-comments). The blog is run via [Ghost](https://ghost.org/) but the comments are embedded from his [Discourse forum](http://discourse.codinghorror.com/t/welcome-to-the-internet-of-compromised-things/3550). One important thing to note with this setup is that users have to navigate to your forum to post replies. This is intentional, as we feel that the posting interface on a Discourse forum is currently much richer than what we …

这能适用于您的设置吗？

---

_[View the full topic](https://meta.discourse.org/t/how-to-show-the-latest-discussion-on-the-front-page-of-our-main-website/220346)._
