]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - reindex_blog.py
Process only *.tmpl files.
[phdru.name/phdru.name.git] / reindex_blog.py
index 3a189657b581de59c5bbaf373acfb8a371bdde60..24db91d16539b0f01cf43c1d295ffc23c4febba7 100755 (executable)
@@ -44,8 +44,7 @@ for dirpath, dirs, files in os.walk(blog_root):
    if not d.startswith("20") and not d.isdigit():
       continue
    for file in files:
-      # Ignore index.tmpl and *.html files; supose all other files are *.tmpl
-      if file == "index.tmpl" or file.endswith(".html"):
+      if not file.endswith(".tmpl"):
          continue
       fullpath = os.path.join(dirpath, file)
       template = Template(file=fullpath)