Quantcast
Channel: Troubles with menu on a multi language website
Browsing all 9 articles
Browse latest View live

Troubles with menu on a multi language website

Hi lovely Hugo community I’m quite new in the hugo world (moved from Jekyll) and as I face a first problem/question, I thought I will give this form a try. I’m working on a static website with four...

View Article



Image may be NSFW.
Clik here to view.

Troubles with menu on a multi language website

Hi there, AndreasZiegler: content/ index.en.md index.de.md index.fr.md index.it.md These need to be _index.xx.md If this was a typo, or if this does not solve your problem, please have a read about...

View Article

Troubles with menu on a multi language website

@pointyfar Thanks for your help. I now managed to get the menu. The next problem I’m facing is the following. I want to order the section/menu entries in the menu. Therefore, I added weights to the...

View Article

Troubles with menu on a multi language website

You have this in your config: SectionPagesMenu: "main" And you have (something like) this in your layout: {{ range site.Menus.main }} {{ .Name }} {{ end }} They are both referencing the “main” menu....

View Article

Image may be NSFW.
Clik here to view.

Troubles with menu on a multi language website

Before @pointyfar’s reply, I just moved the weight out of menu: docs and this seemed to have worked (although it is obviously wrong if I use docs while having main configured in the config file). This...

View Article


Image may be NSFW.
Clik here to view.

Troubles with menu on a multi language website

AndreasZiegler: how these entries with weight 0 suddenly appear. It’s because of SectionPagesMenu: "main": Menu templates | Hugo This will create a menu with all the sections as menu items Read full...

View Article

Troubles with menu on a multi language website

I would like to use SectionPagesMenu: "main" and assign the section weights so that the menu entries are created automatically but ordered according to the weights. Is this possible? If yes, how can I...

View Article

Troubles with menu on a multi language website

This may get a bit confusing, but maybe an example helps: {{ range site.Menus.main }} {{ .Name }} / {{ .Title }} / {{ .Weight }} <br> {{ with .Children }} {{ range . }}{{ .Name }}<br>{{...

View Article


Troubles with menu on a multi language website

@pointyfar Replacing title with name and removing SectionPagesMenu: "main" finally solved my issue(s). Thanks a lot for the guidance. Read full topic

View Article

Browsing all 9 articles
Browse latest View live


Latest Images