diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-04 20:04:33 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-04 20:04:33 +0000 |
commit | 01fc6c0a4e4f0850aa762e441ce60aeac5368693 (patch) | |
tree | 8930054b60aafbbde8291ea43bf19e80a23bf7cd /IkiWiki/Render.pm | |
parent | 1f6ed67e69ba586cbefa75c07dcd43d63f558fee (diff) | |
download | ikiwiki-01fc6c0a4e4f0850aa762e441ce60aeac5368693.tar ikiwiki-01fc6c0a4e4f0850aa762e441ce60aeac5368693.tar.gz |
* Improve display of parentlinks and page title of toplevel index page.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r-- | IkiWiki/Render.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index d88ec93d3..ab43717c6 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -72,6 +72,7 @@ sub parentlinks ($) { #{{{ my $pagelink=""; my $path=""; my $skip=1; + return if $page eq 'index'; # toplevel foreach my $dir (reverse split("/", $page)) { if (! $skip) { $path.="../"; @@ -156,8 +157,6 @@ sub genpage ($$$) { #{{{ my $content=shift; my $mtime=shift; - my $title=pagetitle(basename($page)); - my $template=template("page.tmpl", blind_cache => 1); my $actions=0; @@ -186,7 +185,9 @@ sub genpage ($$$) { #{{{ } $template->param( - title => $title, + title => $page eq 'index' + ? $config{wikiname} + : pagetitle(basename($page)), wikiname => $config{wikiname}, parentlinks => [parentlinks($page)], content => $content, |