You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
361 B

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_menu(target, active, name)