Date Based Archives

    6 January 2005, late at night

This article at Pixel Meadow got me started on finally trying to implement a proper date based archive at this site. You can check out the archive page which now features links to my posts in a given month. I think adding date aware navigation at the bottom of each archive page would be handy, but I am not sure when I will get around to doing it.

Dunstan’s idea of making all dates links got me started on taking my changes a little bit further. So, you can also click on the various parts that make up the date of a post to go to a page that contains all the other posts made on that particular day, month, or year.

I will probably write up what was involved in getting this working shortly. The short version of what you need to do is: change the doArticles() function, modify your .htaccess file, rewrite the posted() function, and write a function that generates the archive table. (I had some other complications because of the changes I made to display my link-log inline.) If you see any problems please let me know.

|  

Comments

Don't be shy, you can comment too!

 
Some things to keep in mind: You can style comments using Textile. In particular, *text* will get turned into text and _text_ will get turned into text. You can post a link using the command "linktext":link, so something like "google":http://www.google.com will get turned in to google. I may erase off-topic comments, or edit poorly formatted comments; I do this very rarely.