Contents

Firstpost

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-style front matter look like?

    • 1
      2
      3
      4
      5
      
      +++
      title = "FirstPost"
      date = YYYY-MM-ddTHH:mm:ss
      draft = true
      +++
      
    • versus a yaml-style front 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

1
{{< shortcode-name param1 >}}
  • Instead of copying a bunch of iframe html code, you can add youtube video by calling short-code

    https://i.imgur.com/yNcyBvR.png

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] to config.toml

      https://i.imgur.com/wTugGhQ.png