2006-06-23 02:51:19 +02:00
|
|
|
Some inconsistences around the toplevel [[index]] page:
|
|
|
|
|
|
|
|
* [[ikiwiki]] is a separate page; links to [[ikiwiki]] should better go to
|
|
|
|
the [[index]] though.
|
2007-12-19 22:44:33 +01:00
|
|
|
|
|
|
|
> At least for this wiki, I turned out to have a use for [[ikiwiki]]
|
|
|
|
> pointing to a different page, though the general point might still
|
|
|
|
> stand.
|
|
|
|
|
2006-08-22 01:23:14 +02:00
|
|
|
* The toplevel [[ikiwiki/Discussion]] page has some weird parentlinks
|
|
|
|
behavior. This could be special cased around with the following patch.
|
|
|
|
However, I'm unsure if I like the idea of more special cases around this.
|
|
|
|
It would be better to find a way to make the toplevel index page not be a
|
|
|
|
special case at all.
|
|
|
|
|
2007-02-28 15:34:38 +01:00
|
|
|
Here is a patch:
|
|
|
|
|
2006-08-22 01:23:14 +02:00
|
|
|
--- IkiWiki/Render.pm (revision 1187)
|
|
|
|
+++ IkiWiki/Render.pm (working copy)
|
|
|
|
@@ -71,6 +71,7 @@
|
|
|
|
my $path="";
|
|
|
|
my $skip=1;
|
|
|
|
return if $page eq 'index'; # toplevel
|
|
|
|
+ $path=".." if $page=~s/^index\///;
|
|
|
|
foreach my $dir (reverse split("/", $page)) {
|
|
|
|
if (! $skip) {
|
|
|
|
$path.="../";
|
|
|
|
|
2007-12-19 22:44:33 +01:00
|
|
|
> Came up with a better patch for this, [[done]] --[[Joey]]
|
|
|
|
|
2006-09-28 08:56:52 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
> I would like to suggest another tack, namely a bigger, better special case.
|
|
|
|
> The basic idea is that all indices of the form foo/bar/index get the wiki path foo/bar.
|
2007-07-26 22:41:00 +02:00
|
|
|
> You could do this today using [[todo/index.html_allowed]], except that the toplevel
|
|
|
|
> page "index" becomes "", which causes all sorts of chaos. The discussion page would
|
2007-12-19 22:44:33 +01:00
|
|
|
> become /discussion, and the weird parentlinks behavior would go away. --Ethan
|