fix #1327 -- fix submenus in Jinja themes

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Merge pull request #1328 from getnikola/fix-jinja-submenus

fix #1327 -- fix submenus in Jinja themes