Creating a contact page

Hi all, I’m new to Hugo and a little lost. I had tried the Google machine, read through docs and old reddit and hugo forum threads but am still struggling with this one.

I have managed to create a very simple blog site, and have got my index page and blog page working fine. Now I would like to add a “contact me” page but just cannot seem to figure it out.

Do I create a folder named “pages” in content, then create a “single.html” page? Will that work?

Thanks

Yes. That will work as long as you assign front matter parameters for this content type.

For example:

type = "page"

or

page = "/<name-of-content-file>.md"