Browse Source

only try to process .md or .markdown files, so .swp files from vim are ignored

oz123 11 years ago
parent
commit
3cbb4d725d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      blogit.py

+ 2 - 1
blogit.py

@@ -403,7 +403,8 @@ def build():
     for root, dirs, files in os.walk(CONFIG['content_root']):
         for fileName in files:
             try:
-                entry = Entry(os.path.join(root, fileName))
+                if fileName.endswith('md') or fileName.endswith('markdown'):
+                    entry = Entry(os.path.join(root, fileName))
             except Exception, e:
                 print "Found some problem in: ", fileName
                 print e