Explicitly sort the languages

This prevents the flags being displayed in a different random order
every time you run make!
This commit is contained in:
Andrew Scheller 2015-11-13 12:20:58 +00:00
parent 5481ecc4ba
commit 5707b0430e
1 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ def render_nav(url, overlay=None):
def get_hreflang_urls(src):
hreflang = []
for lang in alternate_urls:
for lang in sorted(alternate_urls):
if src in alternate_urls[lang]:
url = alternate_urls[lang][src]
hreflang.append('<link rel="alternate" href="{url}" hreflang="{lang}"/>'.format(
@ -306,7 +306,7 @@ def get_hreflang_urls(src):
def get_lang_urls(src):
urls = []
for url_lang in alternate_urls:
for url_lang in sorted(alternate_urls):
if src in alternate_urls[url_lang]:
img_css = ''
if url_lang == lang: