Using discourse API to display topics as a blog


I’ve create a quick example to use discourse API just with javascript to create a blog-like site fetching latest posts on a category.

Maybe useful for someone who wants to use discourse as backend for a blog or a webapp.


I’ve included a simpler example and instructions on how to use the library on your own site:

Didn’t explore the API. Can pinned topics be “unpinned”?

They can, or you can skip them checking if the pinned is True for the post.

@majken I think we should use this for our blog, solves the weird formatting on either Discourse or WordPress and it’s easier to host.

Yes, and this becomes very interesting for communities as well.

File a JIRA issue!