Skip to content
Browse files

Ensure section slugs are all lowercase.

  • Loading branch information
da2x committed Aug 29, 2015
1 parent 409ec83 commit 63b0d4f58fd35a50f0f7398bea72f2faa6e059cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/
@@ -783,7 +783,7 @@ def section_slug(self, lang=None):
slug = self.messages[lang]["Uncategorized"]
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."""

0 comments on commit 63b0d4f

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