From: Joey Hess Date: Mon, 29 Sep 2008 22:29:53 +0000 (-0400) Subject: support indexpages when renaming pages X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/a7fd6debc50e95d189f08cd47d1fd1fe2a5aa2d6?hp=41d7ccfa792d5316e85054d4c066f1680f926c9f support indexpages when renaming pages Note that the page filename code used here and in editpage are identical.. --- diff --git a/IkiWiki/Plugin/rename.pm b/IkiWiki/Plugin/rename.pm index 3ee457ff0..b2c3eedfe 100644 --- a/IkiWiki/Plugin/rename.pm +++ b/IkiWiki/Plugin/rename.pm @@ -279,7 +279,12 @@ sub sessioncgi ($$) { #{{{ $type=$ext; } - $destfile.=".".$type; + if (! $config{indexpages}) { + $destfile.=".".$type; + } + else { + $destfile.="/index.".$type; + } } push @torename, { src => $src,