blowfish/layouts/partials/header
2023-01-14 02:09:45 +00:00
..
basic.html final version for testing 2023-01-14 02:09:45 +00:00
fixed.html fix: Fix header with disabled logo on mobile 2023-01-01 17:44:20 +01:00
header-mobile-option-nested.html final version for testing 2023-01-14 02:09:45 +00:00
header-mobile-option-simple.html final version for testing 2023-01-14 02:09:45 +00:00
header-mobile-option.html final version for testing 2023-01-14 02:09:45 +00:00
header-option-nested.html final version for testing 2023-01-14 02:09:45 +00:00
header-option-simple.html final version for testing 2023-01-14 02:09:45 +00:00
header-option.html add nested menus capability 2023-01-06 16:57:51 +00:00
README.md add nested menus capability 2023-01-06 16:57:51 +00:00

Header

  • header-option-simple.html renders menus without nested items

  • header-option-nested.html renders menus with nested items

  • header-option.html decides which template to render given the menu

  • js/header.js exposes a method to toggle visibility of nested menus

  • Nesting is configured using the parent and identifier properties in menus.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