I am new to hugo and have created a small site using the hugo-icon theme.
Hugo-icon is a single page theme with a contact form. This form is supposed to send entered data to a form mail service that will then send a mail to the website owner with the message from the user. This is all fine and well. However, the form mail service should be able to send the user back to one of two URLs:
1: If submission was a success: A “thank-you” page that tells the user thank you for your interest
or 2: If the submission failed for some reason: An “error” page that tells the user that submission failed for whatever reason.
Problem is that I cannot seem to figure out how to add these two extra pages: “thank-you” and “error”.
I have tried making a new thank-you.md in content using the command: “hugo new thank-you.md”. This does create a new file in content and I have put in some content in there. However, this page is not shown on the site. If I go to /thank-you, I get a 404.
So I guess I am missing some kind of mapping of this URL to the actual content page. How to do this?
I have tried to also create a “thank-you.html” under layouts, but that does not seem to help.
I have read all what I can find about themes and customizing themes on gohugo docs.
I hope you can help.