aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/index.html_allowed.mdwn
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-07-25 23:06:40 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-07-25 23:06:40 +0000
commit13efa73e6ecf1a735faa46a8b0700c41b6131e59 (patch)
treeb2f4000fa0a4b5924c8dcc1315470e4a6753795e /doc/todo/index.html_allowed.mdwn
parent90eecaa4e85d3f596b5b494d91ac0b30b2023cc7 (diff)
downloadikiwiki-13efa73e6ecf1a735faa46a8b0700c41b6131e59.tar
ikiwiki-13efa73e6ecf1a735faa46a8b0700c41b6131e59.tar.gz
web commit by http://ethan.betacantrips.com/: Much simpler patch
Diffstat (limited to 'doc/todo/index.html_allowed.mdwn')
-rw-r--r--doc/todo/index.html_allowed.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/todo/index.html_allowed.mdwn b/doc/todo/index.html_allowed.mdwn
index 9c09eec5a..dabba6914 100644
--- a/doc/todo/index.html_allowed.mdwn
+++ b/doc/todo/index.html_allowed.mdwn
@@ -104,3 +104,21 @@ page "A/B/index.html" is treated as "A/B".
> This way foo/index gets "foo" as its title, not "index". --Ethan
+
+I took another swing at this and subverted the dominant paradigm. Here goes:
+
+<pre>
+diff -ru ikiwiki-2.4/IkiWiki.pm ikiwiki/IkiWiki.pm
+--- ikiwiki-2.4/IkiWiki.pm 2007-06-26 15:01:57.000000000 -0700
++++ ikiwiki/IkiWiki.pm 2007-07-25 15:58:00.990749000 -0700
+@@ -239,6 +239,7 @@
+ my $type=pagetype($file);
+ my $page=$file;
+ $page=~s/\Q.$type\E*$// if defined $type;
++ $page=~s/\/index$// if $page =~ /\/index$/;
+ return $page;
+ } #}}}
+
+</pre>
+
+This just makes it so that all files named foo/index become pages called foo, which is the desired effect. I haven't tested everything so far, so be careful! But you can see it working at http://ikidev.betacantrips.com/one/ again, as before. --Ethan \ No newline at end of file