indicate that an internal page will be rendered even if skipping it
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 17:39:28 +0000 (12:39 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 17:39:28 +0000 (12:39 -0500)
This is important to do because until will_render is called, ikiwiki doesn't
know that the page exists. This avoids recentchanges re-writing every change
page every run.

IkiWiki/Render.pm

index cfe03991699b1f96d61a7a40963058fd4a209a02..02f6b4b1c1561e8a74784c8423d50e9053a66b8c 100644 (file)
@@ -195,10 +195,10 @@ sub render ($) { #{{{
        my $type=pagetype($file);
        my $srcfile=srcfile($file);
        if (defined $type) {
-               return if $type=~/^_/;
                my $page=pagename($file);
                delete $depends{$page};
                will_render($page, htmlpage($page), 1);
+               return if $type=~/^_/;
                
                my $content=htmlize($page, $type,
                        linkify($page, $page,