thegeeklab / hugo-geekdoc

Hugo theme made for documentation

Home Page:https://geekdocs.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow alphabetical sorting in multilanguage bundle menu

d1nuc0m opened this issue · comments

Hi, I ran in to a possible issue with bundle menu and multilanguage.
Suppose to have a menu like this:

main:
  - name:
      en: Lorem Ipsum
      it: Minim veniam
     ref: "myPage"
  - name:
      en: Ut enim
      it: Dolor sit
     ref: "myPage2"

The English menu would be alphabetically ordered:

  • Lorem Ipsum
  • Ut enim

While the Italian one would not:

  • Minim veniam
  • Dolor sit

(Obiviously with only two entries is not a problem).

Maybe an option to alphabetically sort the pages that are at the same level/sublevel could be useful? Or is it a too-specific use case?

Hi, no, the bundle menu is intended to keep the order of the file. It should give the user a flexible way to structure the navigation however they want.

Therefor, sort options are only available for the auto-generated filetree menu.

Hi, no, the bundle menu is intended to keep the order of the file. It should give the user a flexible way to structure the navigation however they want.

Therefor, sort options are only available for the auto-generated filetree menu.

Thank you, I misunderstood the scope/use case of the bundle menu

No worries. Hope that makes sense for you :)