sipb-www
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1af80c3
)
Remove redundant breadcrumbs (for index pages, remove the deepest two levels of URL...
author
Quentin Smith
<quentin@mit.edu>
Thu, 15 Jan 2009 10:57:35 +0000
(
05:57
-0500)
committer
Quentin Smith
<quentin@mit.edu>
Thu, 15 Jan 2009 10:57:35 +0000
(
05:57
-0500)
IkiWiki/Plugin/parentlinks.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/parentlinks.pm
b/IkiWiki/Plugin/parentlinks.pm
index f172151bd2b1e21af3d0ff421f1622cda94c9bc9..6acfcd063becdb5ebaf55e94ed4ab51635150771 100644
(file)
--- a/
IkiWiki/Plugin/parentlinks.pm
+++ b/
IkiWiki/Plugin/parentlinks.pm
@@
-31,6
+31,12
@@
sub parentlinks ($) {
my @pagepath=(split("/", $page));
my $pagedepth=@pagepath;
+
+ if ($pagepath[$#pagepath] eq 'index') {
+ pop @pagepath; # Remove 'index'
+ pop @pagepath; # Remove directory above 'index'
+ }
+
foreach my $dir (@pagepath) {
next if $dir eq 'index';
$depth=$i;