I modified the sample to have Español instead of Italiano. The Spanish overwrites the English, and selecting Espanñol from the menubar gets 404 for Contacts. I tried to make the url /contactos instead of /contatti - but the button on the home screen tries to load /es/contacts (getting 404). The Spanish text overwrites the English at /contacts.
What did I screw up? I’ve been staring at the configs for hours.
Thanks. I did look at that, and the original working exampleSite does not have that section. I assumed the .en.toml and .it.toml files took the place of [languages]. But, I can try adding that section and see if it fixes whatever I broke.
Problem turn out to be accidentally removing the symlink from /var/www/html/sitedir to public in hugo dir. I started over with a fresh example site, copying over changes to see when it broke. It didn’t break.
New question: what result is expected from formspree? I will not be using formspree. Their website does not describe the API. I discovered from trial and error that the theme expects a json response. No problem - but what is the structure?
I examined the javascript a bit, and it first looks for a boolean “ok” field at the top level. Maybe that is all that is needed.
I found I can also just return a new HTML page. Doesn’t match the nice theme, but it says “Thanks for your submission” in black on white. I always did B&W web apps with templates, and hired a designer to make it purty.