]> sipb.mit.edu Git - ikiwiki.git/commitdiff
orphans: As a special case, the toplevel index page is never considered an orphaned page.
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 15 May 2008 20:47:44 +0000 (16:47 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 15 May 2008 20:47:44 +0000 (16:47 -0400)
IkiWiki/Plugin/orphans.pm
debian/changelog

index 3a0150d53e4c52b08fe076bf276c1bb2e6e563dd..0f96b9397445ea6f15b4b82cd2bded46143f6aaf 100644 (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.
index e387af09561bdbd1fa7731addceb9610c9cc63c5..c5b46f367d58e414a9afa43f911527b8269ac777 100644 (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