Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure section slugs are all lowercase.
  • Loading branch information
da2x committed Aug 29, 2015
1 parent 409ec83 commit 63b0d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/post.py
Expand Up @@ -783,7 +783,7 @@ def section_slug(self, lang=None):
slug = self.messages[lang]["Uncategorized"]
else:
slug = self.meta[lang]['section'].split(',')[0] if 'section' in self.meta[lang] else self.messages[lang]["Uncategorized"]
return slug
return slug.replace(' ', '-').lower()

def permalink(self, lang=None, absolute=False, extension='.html', query=None):
"""Return permalink for a post."""
Expand Down

0 comments on commit 63b0d4f

Please sign in to comment.