orphans: As a special case, the toplevel index page is never considered an orphaned page.

master
Joey Hess 2008-05-15 16:47:44 -04:00
parent 3599d9e81c
commit 833610a5b4
2 changed files with 3 additions and 1 deletions

View File

@ -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.

2
debian/changelog vendored
View File

@ -5,6 +5,8 @@ ikiwiki (2.47) UNRELEASED; urgency=low
hardcode a proper 'use lib' statement anyway. This fixes a gotcha,
since PERL5LIB won't work once ikiwiki is running via a wrapper or as
a cgi.
* orphans: As a special case, the toplevel index page is never considered
an orphaned page.
-- Joey Hess <joeyh@debian.org> Tue, 13 May 2008 12:30:18 -0400