]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/toplevel_index.mdwn
web commit from 85.25.141.60: poll vote (It's fast enough)
[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 Here is a patch:
12
13         --- IkiWiki/Render.pm   (revision 1187)
14         +++ IkiWiki/Render.pm   (working copy)
15         @@ -71,6 +71,7 @@
16                 my $path="";
17                 my $skip=1;
18                 return if $page eq 'index'; # toplevel
19         +       $path=".." if $page=~s/^index\///;
20                 foreach my $dir (reverse split("/", $page)) {
21                         if (! $skip) {
22                                 $path.="../";
23
24 ---
25
26 > I would like to suggest another tack, namely a bigger, better special case. 
27 > The basic idea is that all indices of the form foo/bar/index get the wiki path foo/bar.
28 > You could do this today using [[todo/index.html_allowed]], except that the toplevel 
29 > page "index" becomes "", which causes all sorts of chaos. The discussion page would 
30 > become /discussion, and the weird parentlinks behavior would go away. --Ethan