daKmoR / rocket

Move to https://github.com/modernweb-dev/rocket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sub menu items with the same name are not unique

LarsDenBakker opened this issue · comments

I have two sub menu items with the same name. Select one makes both highlighted.

image

Sub menu items get duplicated as well, maybe they share the same key:

image

Indeed keys need to be unique... as they are used throughout the code to create the "tree"

you can, however, use a best practice to have "unique keys" by doing Parent > Child.
If you do so you probably want to separately provide a title which will be displayed in the menu instead of the key.

test-runner/index.md
---
title: Test Runner
eleventyNavigation:
  key: Test Runner
---

test-runner/overview.md
---
title: Web Test Runner Overview
eleventyNavigation:
  key: Test Runner > Overview
  title: Overview
  parent: Test Runner
---

I will leave this open as we should definitely document this 👍

closed by #51