diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-09-29 18:29:53 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-09-29 18:29:53 -0400 |
commit | a7fd6debc50e95d189f08cd47d1fd1fe2a5aa2d6 (patch) | |
tree | 4e7a2c8fd35296a126e56b50b0a43f480573d4e3 | |
parent | 41d7ccfa792d5316e85054d4c066f1680f926c9f (diff) | |
download | ikiwiki-a7fd6debc50e95d189f08cd47d1fd1fe2a5aa2d6.tar ikiwiki-a7fd6debc50e95d189f08cd47d1fd1fe2a5aa2d6.tar.gz |
support indexpages when renaming pages
Note that the page filename code used here and in editpage are identical..
-rw-r--r-- | IkiWiki/Plugin/rename.pm | 7 |
1 files changed, 6 insertions, 1 deletions
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, |