Using discourse API to display topics as a blog

Hello,

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.

4 Likes

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

https://github.com/nukeador/discourse-blog/blob/master/README.md

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.

@Kensie 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!