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 1 changed file with 1 addition and 1 deletion.
@@ -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.