Browse Source

Recompile layout on static files modification

Danilo Gómez Gómez 5 years ago
parent
commit
b810bf4e5f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      sitegen.py

+ 2 - 1
sitegen.py

@@ -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")