Discourse now allows embedding comments on multi-author blogs. Previously one discourse username was used to create all blog article topics created by Discourse. This approach works well for single author blogs but not so well for multi-author ones. Since, topics are not created using the discourse username of the author, new comment author notifications are not automatically sent out.
This led me to write the recently merged Discourse feature that allows you to specify the author’s discourse username for each article published on a multi-author blog.
Discourse has two methods for creating topics for blog posts
- RSS or Atom feed
- Readability algorithm
When any forum users comment on the blog article forum topic the comment will appear on the blog as well.
- Install Discourse. It is preferred that you use discourse_docker.
- Navigate to Embedding Site Settings http://discourse.yourdomain.com/admin/site_settings/category/embedding
- Configure the settings being sure to specify the following
<div>tag where you would like comments to appear.
discourseUrlso that it points to the root URL of your Discourse forum.
discourseUserNameto author’s discourse username.
discourseEmbedUrlto the canonical URL of the page where you are embedding Discourse. This URL must be unique otherwise multiple topics for the same article will be created.
- Reload your blog to allow changes to take effect. Discourse will begin creating topics for your blog posts in your forum and comments should now be visible on your blog.