New draft extension part 2
This commit is contained in:
@ -67,8 +67,8 @@ def get_blog_slugs(num=0):
|
|||||||
# iterate over all files
|
# iterate over all files
|
||||||
slugbase = os.path.relpath(v[0], BLOG_DIR)
|
slugbase = os.path.relpath(v[0], BLOG_DIR)
|
||||||
for f in v[2]:
|
for f in v[2]:
|
||||||
# ignore all non-.rst files
|
# ignore all non-.rst files and drafts
|
||||||
if not f.endswith('.rst'):
|
if not f.endswith('.rst') or f.endswith('.draft.rst'):
|
||||||
continue
|
continue
|
||||||
slugs.append(safe_join(slugbase, f[:-4]))
|
slugs.append(safe_join(slugbase, f[:-4]))
|
||||||
slugs.sort()
|
slugs.sort()
|
||||||
|
Reference in New Issue
Block a user