1 This patch adds function bestdir() which returns best directory from the directory structure. This is in addition to the bestlink() function which is there in IkiWiki.pm
6 ===================================================================
7 --- IkiWiki.pm (revision 9)
8 +++ IkiWiki.pm (working copy)
18 + if ($link=~s/^\/+//) {
24 + $l.="/" if length $l;
26 + if (-d "$config{srcdir}/$l") {
29 + } while $cwd=~s!/?[^/]+$!!;
31 + if (length $config{userdir}) {
32 + my $l = "$config{userdir}/".lc($link);
42 sub isinlinableimage ($) {