aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-29 18:06:36 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-29 18:06:36 -0500
commit7125c7269afca4a76dc24d5475d20986e8b99722 (patch)
treed1c759312dc72849a7bdb6c0ac055af0bb381b0f /IkiWiki/Render.pm
parent3d29c5e3f8d482cc485af4925e5b692dd35504b7 (diff)
downloadikiwiki-7125c7269afca4a76dc24d5475d20986e8b99722.tar
ikiwiki-7125c7269afca4a76dc24d5475d20986e8b99722.tar.gz
don't scan internal pages
scan() does too much. All that is needed is to preprocess the internal page in scan-only mode.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r--IkiWiki/Render.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 76e8ef1f4..a42cdc422 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -377,7 +377,9 @@ sub refresh () { #{{{
$pagemtime{$page}=$mtime;
if (isinternal($page)) {
push @internal, $file;
- scan($file);
+ # Preprocess internal page in scan-only mode.
+ my $content=readfile(srcfile($file));
+ preprocess($page, $page, $content, 1);
}
else {
push @needsbuild, $file;