Skip to content

Commit 449b873

Browse files
committedSep 26, 2015
Sort keys in tag cloud
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 81820b5 commit 449b873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nikola/plugins/task/tags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def write_tag_data(data):
172172
"""Write tag data into JSON file, for use in tag clouds."""
173173
utils.makedirs(os.path.dirname(output_name))
174174
with open(output_name, 'w+') as fd:
175-
json.dump(data, fd)
175+
json.dump(data, fd, sort_keys=True)
176176

177177
if self.site.config['WRITE_TAG_CLOUD']:
178178
task = {

0 commit comments

Comments
 (0)