support browserless mode
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 10 Mar 2006 02:42:11 +0000 (02:42 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 10 Mar 2006 02:42:11 +0000 (02:42 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index eba94cba247190d0fae6c2b93d67f8cb97e80925..c2d5e64755c6497e51c6895b25f2b7514f074550 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -210,7 +210,7 @@ sub finalize ($$) {
                }
                $path.="../";
        }
-       $path=~s/\.\.\///;
+       $path=~s/\.\.\/$/index.html/;
        $pagelink="<a href=\"$path\">$wikiname/</a> $pagelink";
        
        $content="<html>\n<head><title>$title</title></head>\n<body>\n".