aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-29 15:51:32 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-29 15:51:32 -0500
commit8b31c53366bbee51b36501443eafd0f712ee6a4c (patch)
tree5c3f3645b4e3d7439f57fc954d6af6ca8bfd3497 /IkiWiki/Render.pm
parentcabd5140c4d6255afdcb527e7f6d7e7815e4aa43 (diff)
downloadikiwiki-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.pm4
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++;
}