Variables

A variable looks up a value from the front-matter of a file in which variable is used. If you wanted to simply display a variable, you would do:

---
name: Ajay 
---
My name is {{ name }}

If a value is undefined or null, nothing is displayed. The same behavior occurs when referencing undefined or null objects.

Global Built-in Variables

Last Updated: 16/01/2021 Next Article