Navigation for blosxom calendar

Todd Larason wrote a very nice plugin for adding a calendar to a blosxom blog, which as you can see, I've put to good use.

In so doing, I added a few features and fixed a bug. So I've posted the new version here.

The changes are:

  • displays the calendar for the month that the article is in, not the current month
  • offers next/previous arrows to the next/previous month
  • links to dates with leading zeros (i.e., "/2004/09/08" instead of "/2004/9/8"), as the latter appears to break under my version of blosxom

To use it, download it and then put it in your blosxom plugin dir. There is a variable called $nav, which when set to 0 will shut off the next month/previous month arrows.

There is some more documentation at Todd's site.

And here is the relevant portion of my stylesheet:

.calendar {}
.calendar_month_head {
	font-size:		9pt;
	font-weight:		bold;
}
.calendar_day_head {
	font-size:		7pt;
	font-weight:		normal;
}
.calendar_day_noday {}
.calendar_day_link {
	font-size:		7pt;
	text-align:		right;
}
.calendar_day_nolink {
	font-size:		7pt;
	text-align:		right;
}
.calendar_prev_next_link {
	font-size:		9pt;
	font-weight:		bold;
	text-align:		left;
	padding:		10px;
}
A:link.prev_next { text-decoration: none; }
A:visited.prev_next { text-decoration: none; }

download

[Home] [Index]