I’m not a big fan of Movable Type’s default calendar setup. With individual archiving enabled, the links for each day on the calendar take you to the last entry from that day. I think that it makes much more sense for that link to send you to a daily archive for that day. So now my calendar does just that.
This regular expression removes everything after the final slash in the url for the calendar links. This works for my site’s setup because my daily archive is the index for the directory that contains that day’s articles. Different configurations might need some tweaking. For reference, here’s how I have my archiving configured:
I apply the regular expression to the calendar links by changing the MTEntryLink tag in the calendar to the following:
Save, rebuild, and you now have a calendar that links to daily archives.