include ./button.pug #menu-container.menu-container .menu-items-container include ./left_declaration.pug each target, name in theme.menu - var targetPath = target.substr(1) - var currPath = page.path - var active = (!is_home() && targetPath === '') ? false : currPath.startsWith(targetPath) +button(target, active, name)