]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/recentchanges.pm
tweak recentchanges permalink code
[ikiwiki.git] / IkiWiki / Plugin / recentchanges.pm
index eb23b184b7f151ac95513e80c5a3b8a6fd99985c..e124a454089b2470907c19556461b84a8956966e 100644 (file)
@@ -173,8 +173,13 @@ sub store ($$$) { #{{{
        $template->param(
                %$change,
                commitdate => displaytime($change->{when}, "%X %x"),
+               commitdate_raw => scalar localtime($change->{when}),
                wikiname => $config{wikiname},
        );
+       
+       $template->param(permalink => $config{url}."$config{recentchangespage}/#change-".titlepage($change->{rev}))
+               if exists $config{url};
+       
        IkiWiki::run_hooks(pagetemplate => sub {
                shift->(page => $page, destpage => $page,
                        template => $template, rev => $change->{rev});