Commits

John Mulligan committed 31a25f5

generate pages with sample content

Comments (0)

Files changed (2)

 \.py[co]$
 \.swp$
+_sample

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)