January 24, 2008
MarkBernstein.org
 
Follow me on Twitter

Widget

I'm playing with following Rachel Cunliffe's trend of the moment and formatting the post date on these weblog items as a calendar page. This is all done with Tinderbox templates and (fairly simple) standard markup.

In the old template, we had a simple date tag:

<div class="date">24 Jan 2008</div>

All we do now is add a little extra markup to pull out the separate field:

<div class="date">
<span class="month">Jan 2008</span>
<span class="day">24</span>
</div>

The actual formatting is handled in CSS, and I'm not entirely happy with the details. But it's not really very difficult, it's a change from the conventional format, and perhaps it saves some space.