Post Configuration

Hugo provides a new command to create a post, As you know this template is a multilingual template, that’s why when you create a new post, you need to define which language post is this, as a example for creating a new post is hugo new content/english/blog/ , it will create a post for English language.

Configure Post

You can configure your blog post from the front-matter. Front-matter starts with --- and end with also --- . In this front matter you can give author = author name (author name should be capitalize, ex: John Doe) , description = meta description, image = images/blog/post-thumb.jpg, bg_image = image.jpg( background image is for page header), categories and tags.

When you created a new post, the draft default value is true, and when the draft is true your post will not show, you need to change it for showing this post. like draft = false. Only then your post will show in blog page.

After closing front matter give your post content, remember that every file that has an .md extension, are supports markdown.

Improve this page on Github  —  Last updated:  Sun, Oct 4, 2020