]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/toplevel_index.mdwn
ikiwiki (3.20140916) unstable; urgency=low
[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
6   > At least for this wiki, I turned out to have a use for [[ikiwiki]]
7   > pointing to a different page, though the general point might still
8   > stand.
9
10 * The toplevel [[ikiwiki/Discussion]] page has some weird parentlinks
11   behavior. This could be special cased around with the following patch.
12   However, I'm unsure if I like the idea of more special cases around this.
13   It would be better to find a way to make the toplevel index page not be a
14   special case at all.
15
16 Here is a patch:
17
18         --- IkiWiki/Render.pm   (revision 1187)
19         +++ IkiWiki/Render.pm   (working copy)
20         @@ -71,6 +71,7 @@
21                 my $path="";
22                 my $skip=1;
23                 return if $page eq 'index'; # toplevel
24         +       $path=".." if $page=~s/^index\///;
25                 foreach my $dir (reverse split("/", $page)) {
26                         if (! $skip) {
27                                 $path.="../";
28
29    > Came up with a better patch for this, [[done]] --[[Joey]]
30
31 ---
32
33 > I would like to suggest another tack, namely a bigger, better special case. 
34 > The basic idea is that all indices of the form foo/bar/index get the wiki path foo/bar.
35 > You could do this today using [[todo/index.html_allowed]], except that the toplevel 
36 > page "index" becomes "", which causes all sorts of chaos. The discussion page would 
37 > become /discussion, and the weird parentlinks behavior would go away. --Ethan