Hello Mr. divinerites,
Once again thank you very much for your intervention.
As spartan as it was, it was helpful. Not without some sweat, but greatly useful.
After working years only on desktop, mostly with Java and C#, I am quite inexperienced with anything related to web and this is my first site on AWS after years putting content on gogglepages, so I confess I was hoping for a bit more of detail, but that was indeed not necessary.
To summarize, your config.toml change proposition did not work, but the fact that I was free to try something else gave, trial by trial, more and more understanding on how Hugo organizes itself in order to generate static content.
Before showing what worked for me, please let me show what I have tried and what happened after each trial in the hopes I could either get some insights of why it did not work and, should my trials reveal a bug on Hugo, I would be glad to share with the community to improve it.
Attempt #1
[menu]
[[menu.main]]
identifier = "about"
name = "About"
url = "about**.html**/index.html"
[[menu.main]]
identifier = "posts"
name = "Posts"
url = "posts.html"
In this 1rst attempt the result was:
Working on debug (hugo server) but not for generation. For generation, it says:
Error building site: failed to render pages: open /home/user01/sites/site01/public/about.html: is a directory
You may have noticed that about**.html**/index.html, I put the link having about**.html** as a directory because config.toml parameter “uglyurls = true” was creating about.html a directory.
Attempt #2
[menu]
[[menu.main]]
identifier = "contact"
name = "Contact"
url = "contact/index.html"
[[menu.main]]
identifier = "posts"
name = "Posts"
url = "posts.html"
In this 2nd attempt, it seams to work for generation (did not push to the server to try), but not for debug.
Attempt #3
This time, I thought I could be facing a problem due to some piece of hard-coded software that handles “About” differently, so I have adapted strategy.
Before, my about.md was in the root of “content” folder, so I changed its name to contact.md and put it inside a folder named “contact”, after that, on my file contact.md, I removed the following from its Front Matter: # aliases = [“about-us”,“contact”]
After that I just changed my config.toml to my definitive version that is now git commit
[menu]
[[menu.main]]
identifier = "contact"
name = "Contact"
url = "contact/contact.html"
[[menu.main]]
identifier = "posts"
name = "Posts"
url = "posts.html"
I truly hope this helps somebody that may come across this kind of problem.