Firstpost
Contents
Front matter - meta data about this piece of data
-
key-value pairs that gives us information about this file
-
can be written in three languages:
yaml,toml,json -
default language for front matter is
yaml -
What does a
toml-stylefront matter look like?-
1 2 3 4 5+++ title = "FirstPost" date = YYYY-MM-ddTHH:mm:ss draft = true +++ -
versus a
yaml-stylefront matter -
1 2 3 4 5--- title: "firstPost" date: YYYY-MM-ddTHH:mm:ss draft: true ---
-
-
Create custom front matter such as
author: "Aurora"
To embed a video
|
|
-
Instead of copying a bunch of iframe html code, you can add youtube video by calling short-code

Taxonomy
how we group content together
-
Two common default taxonomies -
tag,category -
List page of tag would be automatically generated by Hugo
-
Third (and not default) taxonomy
moods-
Add
[taxonomies]toconfig.toml
-

