]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/toplevel_index.mdwn
comment
[ikiwiki.git] / doc / todo / toplevel_index.mdwn
1 Some inconsistences around the toplevel [[index]] page:
2
3 * [[ikiwiki]] is a separate page; links to [[ikiwiki]] should better go to
4   the [[index]] though.
5 * The toplevel [[ikiwiki/Discussion]] page has some weird parentlinks
6   behavior. This could be special cased around with the following patch.
7   However, I'm unsure if I like the idea of more special cases around this.
8   It would be better to find a way to make the toplevel index page not be a
9   special case at all.
10
11         --- IkiWiki/Render.pm   (revision 1187)
12         +++ IkiWiki/Render.pm   (working copy)
13         @@ -71,6 +71,7 @@
14                 my $path="";
15                 my $skip=1;
16                 return if $page eq 'index'; # toplevel
17         +       $path=".." if $page=~s/^index\///;
18                 foreach my $dir (reverse split("/", $page)) {
19                         if (! $skip) {
20                                 $path.="../";
21