Are you sure it works locally?
I cloned your repo and submodule, ran hugo server -D
and the dropdown menu had four entries in it: Posts, Blogs, Archive, and taxa (Hugo 0.55.6). From your description and code, I assume you’re not wanting the last two to be in this dropdown menu.
Does this thread help—Exclude section from list?