Compiled a Hugo website on a different computer and my menu order is wrong

Team, I’d love to pick up your brains on this situation.
It might be an easy thing, I just don’t understand what’s going on.

I worked on my personal website (don’t judge the quality of the code, but here’s the repo).

The context

I just cloned the git repo to my older computer and installed hugo. Running on:
hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended darwin/amd64 BuildDate=2024-03-20T11:40:10Z VendorInfo=gohugoio

When I run hugo server -D this is the output of my terminal:

Watching for changes in /Users/Marek/develop/marek-website/{archetypes,content,data,layouts,node_modules,package.json,static,themes}

Watching for config changes in /Users/Marek/develop/marek-website/config.toml

Start building sites …

hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended darwin/amd64 BuildDate=2024-03-20T11:40:10Z VendorInfo=gohugoio

WARN "/Users/Marek/develop/marek-website/content/education-awards.html:1:1": duplicate menu entry with identifier "Education & Awards" in menu "main"

WARN "/Users/Marek/develop/marek-website/content/hobbies.html:1:1": duplicate menu entry with identifier "Hobbies" in menu "main"

I don’t quite understand the warnings wince I am not using ANY identifiers for menu entries.

The issue

The issue I am facing is that having hugo server run on my other computer, the menu items were in the correct order (as displayed on marekdlugos dot com):
Work | Side Projects | Education & Awards | Hobbies | Sharing

The way the menu gets displayed right now when I run it on localhost is:
Work | Side Projects | Sharing | Education & Awards | Hobbies

Additional information

...
menu:
  main:
    weight: 25

---

Thank you.

Is it the same hugo version ? Should be the cause if you really clone the repo.

Or 2 entries with same weight.

The erroneous “duplicate menu entry with identifier” warning is a known issue (#12306) that was resolved in v0.125.0.

Upgrade to the latest version (v0.125.6).

And, unrelated, change this in your site config…

disableKinds = ["taxonomy", "taxonomyTerm"]

…to this:

disableKinds = ["taxonomy", "term"]
2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.