From the course: Learning Static Site Building with Hugo

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Edit front matter content

Edit front matter content

From the course: Learning Static Site Building with Hugo

Start my 1-month free trial

Edit front matter content

- [Instructor] The section at the top of each post file is the front matter. It stores metadata or properties about the post that aren't actually rendered or displayed to the user. You can change or add properties to this front matter section if you need to. For example, you could change the title of the post, or the publish date. The Hugo documentation, at gohugo.io has a list of all the front matter properties you can add. When this post is ready to publish, go ahead and remove the draft property and save the file. Let's also check this file into Git. We can do git add dash dash all, git status to see what we changed, and then git commit dash M, first post. Next we'll take a look at adding pages to the site that are separate from posts.

Contents