calendar: use left and right arrows for next/prev months
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 12 Oct 2009 01:55:06 +0000 (21:55 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 12 Oct 2009 01:55:06 +0000 (21:55 -0400)
This is consistent with the year display, and I think it is less
visually confusing than using the full month names.

IkiWiki/Plugin/calendar.pm

index cf133e8dc9061305819b2ad5c84732385d930074..dcf2b6d641abd309428ddd231dfcefe5907faaa3 100644 (file)
@@ -133,14 +133,14 @@ sub format_month (@) {
        if (exists $pagesources{"$archivebase/$pyear/$pmonth"}) {
                $purl = htmllink($params{page}, $params{destpage}, 
                        "$archivebase/$pyear/$pmonth",
-                       linktext => " $pmonthname ");
+                       linktext => " \&larr ");
        }
        add_depends($params{page}, "$archivebase/$pyear/$pmonth",
                deptype("presence"));
        if (exists $pagesources{"$archivebase/$nyear/$nmonth"}) {
                $nurl = htmllink($params{page}, $params{destpage}, 
                        "$archivebase/$nyear/$nmonth",
-                       linktext => " $nmonthname ");
+                       linktext => " \&rarr ");
        }
        add_depends($params{page}, "$archivebase/$nyear/$nmonth",
                deptype("presence"));