New draft extension part 2

This commit is contained in:
str4d
2015-01-20 10:14:19 +00:00
parent bcdedcde43
commit f0c27338a7

View File

@ -67,8 +67,8 @@ def get_blog_slugs(num=0):
# iterate over all files
slugbase = os.path.relpath(v[0], BLOG_DIR)
for f in v[2]:
# ignore all non-.rst files
if not f.endswith('.rst'):
# ignore all non-.rst files and drafts
if not f.endswith('.rst') or f.endswith('.draft.rst'):
continue
slugs.append(safe_join(slugbase, f[:-4]))
slugs.sort()