tl;dr on adding posts to a Hugo based website
Short instructions on how to write a blog post for a Hugo based website
By Aamnah, a frontend developer who has created more websites than she can count. She enjoys nerding out and gardening.
- The
_index.md
file is a file that makes a section a section. It’s for internal use only and will not be shown publicly on the website. - To add a post to a subsection add it to a folder. This site is using a folder based structure for easier categorization.
- It is recommended that you keep all posts inside a folder and not in the root of the notes repo.
Drafts
Add draft: true
to frontmatter.
Page URLs
The URL for a note is determined by the file path, and can be overwritten with the slug
forntmatter value. Check the URL for this post, it was specified with slug
Post summaries
You can add a summary for your post with the summary
field in the frontmatter. If you don’t add one, one will be automatically generated.
Tags: