forked from boyska/sito-hackit-17
fix navbar_sort
This commit is contained in:
parent
31bd800fb0
commit
3b14b36380
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ def add_localmenuitems(generator):
|
||||||
menu.setdefault(tr.lang, [])
|
menu.setdefault(tr.lang, [])
|
||||||
print('we have langs ' + ','.join(menu.keys()))
|
print('we have langs ' + ','.join(menu.keys()))
|
||||||
for page in sorted(generator.context['pages'],
|
for page in sorted(generator.context['pages'],
|
||||||
key=lambda x: x.navbar_sort):
|
key=lambda x: int(x.navbar_sort)):
|
||||||
defined_langs = []
|
defined_langs = []
|
||||||
menu[page.lang].append(page)
|
menu[page.lang].append(page)
|
||||||
defined_langs.append(page.lang)
|
defined_langs.append(page.lang)
|
||||||
|
|
Loading…
Reference in a new issue