mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
Header
-
header-option-simple.htmlrenders menus without nested items -
header-option-nested.htmlrenders menus with nested items -
header-option.htmldecides which template to render given the menu -
js/header.jsexposes a method to toggle visibility of nested menus -
Nesting is configured using the
parentandidentifierproperties inmenus.en.yml. Example
main:
- name: Product
identifier: product
weight: 1
- name: Analytics
pageRef: analytics
weight: 1
parent: product
- name: Engagement
pageRef: engagement
weight: 2
parent: product
secondary:
- name: Engineering
identifier: engineering
weight: 1
- name: Computers
pageRef: computers
weight: 1
parent: engineering
- name: Rockets
pageRef: rockets
weight: 2
parent: engineering