Front matter allows you to change the characteristics of a page through manipulation of the metadata of the website.
All the Hugo front matter fields can be found here; the following list are the ones most used in this project:
--- title: "Default" date: 2017-10-10T00:54:19+02:00 draft: true description: "Fiddling around with Front Matter." thumbnail: "/path_to/image.png" categories: [ "documentation", ] tags: [ "markdown", "hugo", "frontmatter", ] disable_comments: true --- date doesn’t necessary need the time, it can be omitted.
Let’s have a look at how this theme processes and renders the different Markdown codes. We ’ll use more or less the same order as the Markdown quickref. As text filler we’ll use the wonderful Bacon Ipsum. Do check the original markdown document,to understand the actual usage of the different codes.
There are some issues to take in consideration when using Mainroad:
put an extra newline before starting a list (bug?
This Quick Reference focusses on Markdown, the content creation and formatting language used in Hugo. For a more lengthy tutorial, have a look at the excellent Markdown Tutorial and the official Cheat Sheet, which served as inspiration for this page.
Check also the Mainroad theme page for the implementation and specific behaviour of the different Markdown commands in the Mainroad theme. Not all modifiers work as one would expect them to do.
This Quick Reference focusses on the command line usage of hugo. It’s based on my own experience and usage of the command. The reference guide for the command line can be found on the Hugo website. Most frequently used commands are on top.
Content management commands new is the base command used to create new content. Requires additional commands and parameters for a new site, new theme or new content.