Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Nested menu ==> parent index page not linked #31

Open
kamar535 opened this issue Sep 9, 2016 · 1 comment
Open

Nested menu ==> parent index page not linked #31

kamar535 opened this issue Sep 9, 2016 · 1 comment

Comments

@kamar535
Copy link

kamar535 commented Sep 9, 2016

I have the following in my config.toml.

[[menu.main]]
  name = "Section"
  url  = "section/"

An the following content:

$> tree content/section/
content/section/
├── index.md

In the menu I now see a link to the section index.md page as expected.

After adding the following to config.toml:

[[menu.main]]
  name = "Section"
  url  = "section/"

[[menu.main]]
  name = "Sub page 1"
  url  = "section/page-1"
  parent = "Section"

[[menu.main]]
  name = "Sub page 2"
  url  = "section/page-2"
  parent = "Section"

, and the following content:

$> tree content/section/
content/section/
├── index.md
├── page-1.md
└── page-2.md

Now the sub pages are inserted, indented and linked under Section in the menu. But, the parent Section doesn't link to the section index.md page anymore.

How can I make a nested menu and still have parent elements link to pages?

@tblom
Copy link

tblom commented Jul 22, 2017

This seems to be what we're discussing in issue #70 as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants