aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-05-15 16:47:44 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-05-15 16:47:44 -0400
commit833610a5b4b2ebcb96c25751bef173d85f767522 (patch)
tree16b8c980d29153b6dade502ef5253a4f070e1817 /IkiWiki/Plugin
parent3599d9e81cc018260d907241bff02e677059f99f (diff)
downloadikiwiki-833610a5b4b2ebcb96c25751bef173d85f767522.tar
ikiwiki-833610a5b4b2ebcb96c25751bef173d85f767522.tar.gz
orphans: As a special case, the toplevel index page is never considered an orphaned page.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/orphans.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/orphans.pm b/IkiWiki/Plugin/orphans.pm
index 3a0150d53..0f96b9397 100644
--- a/IkiWiki/Plugin/orphans.pm
+++ b/IkiWiki/Plugin/orphans.pm
@@ -27,7 +27,7 @@ sub preprocess (@) { #{{{
my @orphans;
my $discussion=gettext("discussion");
foreach my $page (keys %pagesources) {
- next if $linkedto{$page};
+ next if $linkedto{$page} || $page eq 'index';
next unless pagespec_match($page, $params{pages}, location => $params{page});
# If the page has a link to some other page, it's
# indirectly linked to a page via that page's backlinks.