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.

11 lines
361 B

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