Creating pages

Page data

Pages can contain arbitrary data. In Markdown files, the data is defined in the front matter block, a block delimited by two triple-dashed lines containing YAML code. Let's see an example:

---
title: This is the front matter
url: custom-url.html
---

# This is the page content
Here you can write Markdown content

In this example, the frontmatter contains two variables: title, that can be used as the page title, and url, a variable to customize the output file name of the page. Below the front matter you can write the Markdown with the page content.

Standard variables

There are some special variables that lume can understand:

---
url: /welcome.html
date: 2021-01-01
layout: layouts/post.njk
draft: true
tags: post
---