My project for the day was adding post index pages (table of contents, recent titled posts, whatever you want to call them) to my weblog.
I decided to go with Rogers Cadenhead's viewPostIndex macro because
It was something I didn't have to figure out and write myself (no need to re-invent the wheel here)
The macro automatically groups posts by month
Because the macro uses an unordered list to display the posts, each post has a bullet in front of it
Built-in support for CSS classes
Rogers has a companion macro (upstreamPostIndexes, available on the same page) that will automatically upstream the post index pages once a night.
I did end up customizing the viewPostIndex macro a bit. This is what I changed:
Added default CSS classes to the macro's parameters so I didn't have to use them in the macro calls on my templates.
Added another CSS class to format the month headings. I wanted them displayed in bold but didn't want to add <b> tags in the macro code, nor did I want to have to edit the macro every time I changed my mind on how I wanted it formatted.
Changed the format of the month header so that instead of displaying "2003/09" it now displays "September 2003".
Added the date of each post to the output (formatted as "Sep 16") and enclosed it with a <div style="float: right; margin-left: 10px;"> tag to force the date to the far right end of the line.
Update: Internet Explorer does not display things correctly using "margin-left". It took me a while to figure that out, as well as how to fix it. I changed it to "padding-left" and now the index pages display correctly in both Internet Explorer and Mozilla Firebird.
My main weblog and all of my category pages now have a post index page. The links to them can be seen in my links column on the right. [Nice macros, Rogers - Thanks!]
Note for Rogers: In his Sept. 11 post, Rogers notes a comment about his picture: "nice picture you look like a bore brush for a 50mm.". When I saw Rogers' picture, the first word that immediately came into my mind was "engineer" - as in someone who *knows* how to build things. Enough said.