diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-29 18:06:36 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-29 18:06:36 -0500 |
commit | 7125c7269afca4a76dc24d5475d20986e8b99722 (patch) | |
tree | d1c759312dc72849a7bdb6c0ac055af0bb381b0f | |
parent | 3d29c5e3f8d482cc485af4925e5b692dd35504b7 (diff) | |
download | ikiwiki-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.
-rw-r--r-- | IkiWiki/Render.pm | 4 |
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; |