call preprocess in scan mode hooks before scan hooks
Following along with change in Render.pmmaster
parent
827710bb59
commit
4e14c5e793
|
@ -40,6 +40,9 @@ sub preprocess (@) {
|
|||
# scan that file too.
|
||||
return unless exists $params{file};
|
||||
|
||||
# Preprocess in scan-only mode.
|
||||
IkiWiki::preprocess($params{page}, $params{page}, $params{data}, 1);
|
||||
|
||||
IkiWiki::run_hooks(scan => sub {
|
||||
shift->(
|
||||
page => $params{page},
|
||||
|
@ -47,9 +50,6 @@ sub preprocess (@) {
|
|||
);
|
||||
});
|
||||
|
||||
# Preprocess in scan-only mode.
|
||||
IkiWiki::preprocess($params{page}, $params{page}, $params{data}, 1);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue