Read our CMS Integration Guide for a graphical way to add and edit blog posts.
Hugo provides a command to create a new post:
hugo new blog/new-post.md
Configure Post
You can configure your blog post from the front-matter. Front-matter starts and ends with ---
. In this front matter you can add an author = "Author Name"
, description = meta description
, and image = images/blog/post-thumb.jpg
. The date will be automatically filled.
After you created a new post, the draft
value is true and your post will not show up on the site. You need to change this parameter to false
or remove it to show this post. Only then your post will show in the blog overview page.
After changing the front matter you can write your post and republish your site.