Skip to content

Commit

Permalink
Treat special-purpose “draft” tag case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
da2x committed May 26, 2015
1 parent b061fb9 commit 4911008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -14,6 +14,7 @@ Features
Bugfixes
--------

* Treat special-purpose “draft” tag case-insensitive
* Avoid some rebuild loops (Issue #1747)
* Better error if two posts/pages output conflict (Issue #1749)
* Scanning of posts refactored out of core (Issue #1700)
Expand Down
2 changes: 1 addition & 1 deletion nikola/post.py
Expand Up @@ -200,7 +200,7 @@ def __init__(
list(set([x.strip() for x in self.meta[lang]['tags'].split(',')])),
alg=natsort.ns.F | natsort.ns.IC)
self._tags[lang] = [t for t in self._tags[lang] if t]
if 'draft' in self._tags[lang]:
if 'draft' in [_.lower() for _ in self._tags[lang]]:
is_draft = True
LOGGER.debug('The post "{0}" is a draft.'.format(self.source_path))
self._tags[lang].remove('draft')
Expand Down

0 comments on commit 4911008

Please sign in to comment.