1 [[!template id=plugin name=unixrelpagespec core=0 author="[[Jogo]]"]]
3 I don't understand why `./*` correspond to siblings and not subpages.
4 This is probably only meaningfull with [[plugins/autoindex]] turned on.
6 Here is a small plugin wich follow usual Unix convention :
8 - `./*` expand to subpages
9 - `../*` expand to siblings
13 # UnixRelPageSpec plugin.
14 # by Joseph Boudou <jogo at matabio dot net>
16 package IkiWiki::Plugin::unixrelpagespec;
24 name => 'IkiWiki::PageSpec::derel',
33 if ($path =~ m!^\.{1,2}/!) {
34 $from =~ s#/?[^/]+$## if (defined $from and $path =~ m/^\.{2}/);
35 $path =~ s#^\.{1,2}/##;
36 $path = "$from/$path" if length $from;