Source

muyhomepage2 / muyhomepage2 / app / build.py

Diff from to

muyhomepage2/app/build.py

         else:
             cpage = website.getpagefile(pagefile)
             if cpage.contentcode != util.contentcode(pagefile):
-                rebuild.add(pagefile)
+                rebuild.add(page.parse(pagefile))
     for spage in website.pages:
         if spage.action in config.always_rebuild():
             rebuild.add(page.parse(spage.filename))
 
 if __name__ == '__main__':
     import os
-    os.chdir('/home/john/fun/site')
+    os.chdir('_sample')
     config = TemplateConfig()
     build(config)