LukasJoswiak / etch

A simple, responsive writing theme for Hugo.
https://lukasjoswiak.github.io/etch/
MIT License
295 stars 166 forks source link

how to add menus? #5

Closed ghost closed 4 years ago

ghost commented 4 years ago

I might be missing something (I'm not a developer), but the default method to insert methods I'm used to from other themes doesn't seem to be working. I'm following the instructions from the documentation, for example

[menu]

  [[menu.main]]
    identifier = "page"
    name = "my page title"
    url = "/mypage/"
    weight = 1

Doesn't result in a menu. Is there another way to create menu items for the navigation bar?

Cheers!

LukasJoswiak commented 4 years ago

Adding support for the official style of menus is on my to do list. For now, you can create menu items by creating an index.md file inside a folder in the content directory. See https://github.com/LukasJoswiak/etch/wiki/Getting-started#supporting-pages.

ghost commented 4 years ago

I see, I did it before, but I was wondering if it was the correct way to do it. Good to know. Thanks.