bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-08-25 00:40:57 +03:00
parent 773332436b
commit 77998f8829

View File

@ -1059,7 +1059,7 @@ object.Constructor('Page', BasePage, {
[text, join] = state.macros[name] } } [text, join] = state.macros[name] } }
if(src){ if(src){
var base = this.get(await base.parse(src, state)) var match = this.get(await base.parse(src, state))
join = _getBlock('join') join = _getBlock('join')
?? join ?? join
@ -1070,11 +1070,11 @@ object.Constructor('Page', BasePage, {
// of the iterated pages, that is handled by the // of the iterated pages, that is handled by the
// respective include/source/.. macros, this however // respective include/source/.. macros, this however
// only depends on page count... // only depends on page count...
depends.add(base.path) depends.add(match.path)
// expand matches... // expand matches...
var first = true var first = true
for await(var page of base.asPages(strict)){ for await(var page of match.asPages(strict)){
if(join && !first){ if(join && !first){
yield join } yield join }
first = false first = false