duerig/blog-app — pull request #2 by baldown (2013-04-29 22:10:03+00:00)
Title: Enabling a embed-based standalone blog-app backed blog

I'm working on trying to build a standalone instance of a single blog-app blog that I can add my own styling and such too. However, I wanted to drop the URL hash concept so that I can make the blog ID and such implicit. This should do so with a small amount of javascript on the standalone instance.

This allows someone who sets a javascript variable of blogapp_id to force the selection of that blog in their embed without having to use the paramhash. Further, they can set blogapp_post to sub-select the particular post from that blog.

When the blogapp_id is set, the embed will now set the permalink for posts to be a page URI that is just the ID of the post, which will then be interpretted within the context of the current page, i.e. if you were in /blog/ when generating the embed, it'll be /blog/123456. You can use URL rewrites or some sort of other programmatic method to then grab that URL, set up the embed, and set the blogapp_id and blogapp_post variables.

Once I've gotten further into instantiating my blog, I intend to write a post explaining just how I've set mine up.