diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-29 15:51:32 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-29 15:51:32 -0500 |
commit | 8b31c53366bbee51b36501443eafd0f712ee6a4c (patch) | |
tree | 5c3f3645b4e3d7439f57fc954d6af6ca8bfd3497 /IkiWiki/Render.pm | |
parent | cabd5140c4d6255afdcb527e7f6d7e7815e4aa43 (diff) | |
download | ikiwiki-8b31c53366bbee51b36501443eafd0f712ee6a4c.tar ikiwiki-8b31c53366bbee51b36501443eafd0f712ee6a4c.tar.gz |
added configuration for recentchanges
I kept it to a simple global configuration, rather than using the
preprocessor directive for recentchanges, because that had chicken and egg
problems and seemed overcomplicated. This should work reasonably well,
though it would be good to add some more metadata so that more customised
recentchanges pages can be made.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r-- | IkiWiki/Render.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index b5b461499..ed359bdd7 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -85,8 +85,8 @@ sub genpage ($$) { #{{{ $actions++; } - if ($config{rcs}) { - $template->param(recentchangesurl => urlto("recentchanges", $page)); + if ($config{rcs} && exists $config{recentchangespage}) { + $template->param(recentchangesurl => urlto($config{recentchangespage}, $page)); $actions++; } |