Skip to content

Commit

Permalink
projectpages: sort JSON keys
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 11, 2015
1 parent 6d77685 commit c7ab2c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v7/projectpages/projectpages.plugin
Expand Up @@ -7,6 +7,6 @@ MinVersion = 7.1.0+

[Documentation]
Author = Chris Warrick
Version = 0.1.5
Version = 0.1.6
Website = http://plugins.getnikola.com/#projectpages
Description = Generate project pages
2 changes: 1 addition & 1 deletion v7/projectpages/projectpages.py
Expand Up @@ -84,7 +84,7 @@ def generate_json(self, jdst, lang):
data[p.meta[lang]['slug']]['permalink'] = p.permalink(lang)
data[p.meta[lang]['slug']]['text'] = p.text(lang)
with open(jdst, 'w') as fh:
json.dump(data, fh)
json.dump(data, fh, sort_keys=True)

def gen_tasks(self):
"""Render project list."""
Expand Down

0 comments on commit c7ab2c7

Please sign in to comment.