Skip to content
Permalink
Browse files

Treat special-purpose “draft” tag case-insensitive

  • Loading branch information
da2x committed May 26, 2015
1 parent b061fb9 commit 4911008547d2c8e9c98de1b2ff12de64da9d2bfd
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +1 −1 nikola/post.py
@@ -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)
@@ -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')

0 comments on commit 4911008

Please sign in to comment.
You can’t perform that action at this time.