|
@@ -307,9 +307,9 @@ def save_generate(generator, args, msg):
|
|
|
def run(args):
|
|
|
print('initial compilation')
|
|
|
init_gen(args)
|
|
|
- save_generate(gen_layout, args, 'generating layout')
|
|
|
save_generate(gen_root, args, 'copying root files')
|
|
|
save_generate(gen_static, args, 'copying static dir')
|
|
|
+ save_generate(gen_layout, args, 'generating layout')
|
|
|
|
|
|
if not args.watch:
|
|
|
return
|
|
@@ -340,6 +340,7 @@ def run(args):
|
|
|
if static_mt != new_static_mt:
|
|
|
static_mt = new_static_mt
|
|
|
save_generate(gen_static, args, 'copying static files')
|
|
|
+ save_generate(gen_layout, args, 'recompiling layout')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
parser = argparse.ArgumentParser("Site generator")
|