Have you ever found yourself needing all the archive links for a single year? You can use the snippet below to do just that.

All you need to do is pass the function the year that you would like (defaults to the current year) and it will return an unordered list of links to the monthly archive pages.