theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.app/
MIT License
1.14k stars 1.16k forks source link

Menu item shown twice...? #576

Open markhm opened 2 years ago

markhm commented 2 years ago

I have a multi-language Ananke site, with several articles only for English in the post subdir. This works well.

However, when I add the following menu indicator to the content/en/post/_index.md' properties, the Articles menu item is shown twice.

title: "Articles"
menu:
  main:
    weight: 4

How can I ensure the menu item is only added once to the menu, following the weight indicator in _index.md...?

Is there a property I am missing in the overall config.toml...? 🙏🏻

jromal commented 1 year ago

I have the same question. Thanks.

regisphilibert commented 1 year ago

Hey there, the theme solely relies on Hugo's own solution menu... but I'm not able to reproduce on my sandbox... Can you give more info about your project? (Hugo version etc...) Ideally access to your repo or a fork?

kendrickcc commented 1 year ago

In config.toml set SectionPagesMenu = "", or simply comment out the default line of it being set to main.