From: Joey Hess Date: Mon, 29 Sep 2008 22:29:53 +0000 (-0400) Subject: support indexpages when renaming pages X-Git-Tag: 2.66~34^2~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a7fd6debc50e95d189f08cd47d1fd1fe2a5aa2d6;p=ikiwiki.git 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,