]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Render.pm
don't scan internal pages
[git.ikiwiki.info.git] / IkiWiki / Render.pm
index b5b461499d1a1f9324d1c9a68c9644f72f246eca..a42cdc4224ddee61f6d07685788d832bdf0ab028 100644 (file)
@@ -85,8 +85,9 @@ sub genpage ($$) { #{{{
                $actions++;
        }
                
-       if ($config{rcs}) {
-               $template->param(recentchangesurl => urlto("recentchanges", $page));
+       if ($config{rcs} && exists $config{recentchangespage} &&
+           $page ne $config{recentchangespage}) {
+               $template->param(recentchangesurl => urlto($config{recentchangespage}, $page));
                $actions++;
        }
 
@@ -376,6 +377,9 @@ sub refresh () { #{{{
                        $pagemtime{$page}=$mtime;
                        if (isinternal($page)) {
                                push @internal, $file;
+                               # Preprocess internal page in scan-only mode.
+                               my $content=readfile(srcfile($file));
+                               preprocess($page, $page, $content, 1);
                        }
                        else {
                                push @needsbuild, $file;