forked from boyska/sito-hackit-17
fix langmenu with empty langs
This commit is contained in:
parent
d263b1a916
commit
2502dfb218
1 changed files with 0 additions and 3 deletions
|
@ -32,11 +32,8 @@ def add_localmenuitems(generator):
|
||||||
for page in menu[lang]:
|
for page in menu[lang]:
|
||||||
menuitems[lang].append((page.title, page.url))
|
menuitems[lang].append((page.title, page.url))
|
||||||
|
|
||||||
print(menuitems['en'])
|
|
||||||
print(menuitems['it'])
|
|
||||||
generator.context['LOCALMENUITEMS'] = menuitems
|
generator.context['LOCALMENUITEMS'] = menuitems
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
signals.page_generator_finalized.connect(add_localmenuitems)
|
signals.page_generator_finalized.connect(add_localmenuitems)
|
||||||
pass
|
|
||||||
|
|
Loading…
Reference in a new issue