File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Features
14
14
Bugfixes
15
15
--------
16
16
17
+ * Treat special-purpose “draft” tag case-insensitive
17
18
* Avoid some rebuild loops (Issue #1747)
18
19
* Better error if two posts/pages output conflict (Issue #1749)
19
20
* Scanning of posts refactored out of core (Issue #1700)
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ def __init__(
200
200
list (set ([x .strip () for x in self .meta [lang ]['tags' ].split (',' )])),
201
201
alg = natsort .ns .F | natsort .ns .IC )
202
202
self ._tags [lang ] = [t for t in self ._tags [lang ] if t ]
203
- if 'draft' in self ._tags [lang ]:
203
+ if 'draft' in [ _ . lower () for _ in self ._tags [lang ] ]:
204
204
is_draft = True
205
205
LOGGER .debug ('The post "{0}" is a draft.' .format (self .source_path ))
206
206
self ._tags [lang ].remove ('draft' )
You can’t perform that action at this time.
0 commit comments