Example implementation of bb-blog which is blogging extension for bb-server and html-builder, producing post pages, widgets, landing/latest, archive and tag pages. Pagination is added when there are more post teasers than fit on a page. Comments from Disqus can be enabled for all or per post. Also a little crud api is implemented so the blog could be managed from the site where the blog is implemented.
Clone the repo:
git clone git@github.com:Michieljoris/blog-example.git
Then:
cd blog-example npm install bower install bin/serve
Open your browser at http://localhost:9100/post/blog-manual.html
Edit a post by clicking on it.
Open the file at server/blog-config.js to configure the blog and restart the
server. So kill the serve process and again bin/serve
.
The server needs to be restarted when changing recipes/config since bb-blog caches the recipes and configuration in memory.
TODO: After saving/deleting/updating open localhost:9100 again, since you might be looking at an old page. Posts that change their published status or that are removed are not yet properly purged from the public www directory.