Blog post plugin

Thanks to @smartwatchme for funding it, I’ve rewritten this plugin to work with recent versions of Discourse. It now allows you to configure which groups should be allowed to create ‘blog-posts’ (admins and moderators by default), and which categories blog posts should be allowed to be created in. Members of allowed groups can convert the first post in a topic from a regular post into a blog post by clicking on the ‘book’ icon that’s found in the hidden (’…’) post menu buttons.

The plugin converts the first image in a post into a header image. It also adds the css class blog-post to the body tag, and the css class blog-post-content to the cooked content of the first post. It comes with some default styles that are used to style the first post in a topic separately from the replies.

The default styles can be disabled by deselecting the plugin setting the blog post use default styles setting. This could be useful if you only wish to use the header-image functionality of the plugin. See the plugin’s README for more details.

Pull requests, especially for improving the default styles, are welcome.

11 Likes