From 833610a5b4b2ebcb96c25751bef173d85f767522 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 15 May 2008 16:47:44 -0400 Subject: orphans: As a special case, the toplevel index page is never considered an orphaned page. --- IkiWiki/Plugin/orphans.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') 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. -- cgit v1.2.3