Skip to content

Commit 695c98b

Browse files
committedJul 11, 2015
this does not fix anything
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent d683518 commit 695c98b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎nikola/plugins/task/galleries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def url_from_path(p):
543543
},
544544
})
545545
context['photo_array'] = photo_array
546-
context['photo_array_json'] = json.dumps(photo_array)
546+
context['photo_array_json'] = json.dumps(photo_array, sort_keys=True)
547547
self.site.render_template(template_name, output_name, context)
548548

549549
def gallery_rss(self, img_list, dest_img_list, img_titles, lang, permalink, output_path, title):

‎nikola/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ def __call__(self, task, values):
540540

541541
def __repr__(self):
542542
return "Change with config: {0}".format(json.dumps(self.config,
543-
cls=CustomEncoder))
543+
cls=CustomEncoder,
544+
sort_keys=True))
544545

545546

546547
def get_theme_path(theme, _themes_dir='themes'):

0 commit comments

Comments
 (0)
Please sign in to comment.