Go Lang Notes


HUGO

HUGO is an exreamly fast wonderful static website generator

HUGO takes markdown files along with TOML, JSON, or YAML and feeds that through the templates to create the site.

Types of Front Matter data types

Front Matter in HUGO is the data that is included at the top of the markdown file along with some predefined variables that HUGO provides.

YAML (most common)

example:

---
someKey: "value"
someNum: 45
someBool: true
---

offical spec

TOML (very simular to YAML and older format)

example:

+++
someKey = "value"
someNum = 45
someBool = true
+++

offical spec

JSON ( standard JSON )

example:

{
    someKey: "value",
    someNum: 45,
    someBool: true
}

offical spec