There is this great post on how to Embedding Discourse Comments via Javascript. However, there are communities where website visitors may not be running javascript. And if not for that, I would argue from the SEO perspective that there should be a way to embed site comments without javascript.
After paying a bit around I find that it can be easily implemented in a much simpler way without any javascript. It’s just a matter of following:
<iframe id="discourse-embed-frame" scrolling="no" referrerpolicy="no-referrer-when-downgrade"
src="https://<DISCOURSE_URL>/embed/comments/?embed_url=<WEBSITE_PAGE_URL>%2F&discourse_username=system"
width="100%" height="3271px" frameborder="0"></iframe>
For example:
<iframe src="https://meta.discourse.org/embed/comments?embed_url=https%3A%2F%2Fp.rizon.top%3A443%2Fhttps%2Fblog.discourse.org%2F2021%2F05%2Fdiscord-and-discourse-better-together%2F&discourse_username=rishabh"
id="discourse-embed-frame" scrolling="no" referrerpolicy="no-referrer-when-downgrade"
width="100%" height="3271px" frameborder="0"></iframe>
Is there any reason why wouldn’t work?