Skip to content

Commit

Permalink
hack to allow uppercase slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed May 30, 2017
1 parent dde5cda commit 762cc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/utils.py
Expand Up @@ -833,7 +833,7 @@ def slugify(value, lang=None, force=False):
# This is the standard state of slugify, which actually does some work.
# It is the preferred style, especially for Western languages.
value = unicode_str(unidecode(value))
value = _slugify_strip_re.sub('', value).strip().lower()
value = _slugify_strip_re.sub('', value).strip()
return _slugify_hyphenate_re.sub('-', value)
else:
# This is the “disarmed” state of slugify, which lets the user
Expand Down

0 comments on commit 762cc92

Please sign in to comment.