Using discourse API to display topics as a blog

(Rubén Martín) #1


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.

(Rubén Martín) #2

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

(Akshay) #3

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

(Rubén Martín) #4

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

(Yousef Alam) #5

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