X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/ee1ad53c4c2710aa7ded61bdc56f3a8cce514f22..899c319191c8f82b03f7d67f3feeeae437423e2f:/IkiWiki/Plugin/orphans.pm

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.