blogHome type makes a comeback

I was trying to sort out the various problems with index pages, and realized I had created something too complicated to debug, or to document, or use for that matter.

This is a common trap in developing CMSes. One extra option too many. Even I didn't understand how it worked. (And I didn't want to.)

So I solved the problem the same way we did in Trex...

We once again have a blogHome type and a template to go with it.

As with Trex, put a #type "blogHome" at the top level of your outline.

By default there are 10 items in each blogHome page, but you can change that by setting #blogHomeItemCount.

I've re-rendered the Kim Parker site with the new setup, and you can look at the source to see how it works.

I've also re-rendered the Fargo Docs site, which is the one that makes use of index pages. It was a tweak to those pages that broke the camel's back and made the index type unsuitable for weblog home pages.

Whew!


Last built: Mon, Oct 13, 2014 at 6:48 AM

By Dave Winer, Monday, January 6, 2014 at 10:28 AM. So, it has come to this.