Skip to content
Permalink
Browse files

projectpages: sort JSON keys

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 11, 2015
1 parent 6d77685 commit c7ab2c7c976aa19cdce47bf4c56e9adb274afbfd
Showing with 2 additions and 2 deletions.
  1. +1 −1 v7/projectpages/projectpages.plugin
  2. +1 −1 v7/projectpages/projectpages.py
@@ -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
@@ -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."""

0 comments on commit c7ab2c7

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