Getting started

lesson 5. Add another content file

Our website is taking shape ;-). But we are missing a nice contact page. To create it, we should create a file ‘/content/’. This file should look like this:

title: Contact page
Send me an email at

We already had a layout file (index.html), but that file was only valid for the homepage. Therefore we now need another file. This file can be an exact copy of the ‘index.html’ file and you should name it ‘single.html’. You must store this file in the ‘/layouts/_default/’ directory.

Your project should now looks like this:


I noticed that I had to restart Hugo for these changes. You can do this by pressing Ctrl-C and re-enter the ‘hugo server’ command on the command line.

Next: 6. Add a blog