Template: header
Template: markdown

Markdown

Amagaki supports Markdown-formatted content documents. Additionally, front
matter facilitates the use of structured content within the Markdown itself.

Full example

First, use front matter with Markdown within a content document.

---
$path: /${doc.base}/
$view: /views/base.njk
date: 2021-01-06
author:
  name: Lorem ipsum
  email: [email protected]
---
# This is my page title.
 

By: <a href="mailto:{{doc.fields.email}}">{{doc.fields.name}}</a>
Published: {{doc.fields.date}}

Use the render filter along with doc.body to render the Markdown as HTML.

<!DOCTYPE html>
<body>
{{doc.body|render}}
</body>

The resulting page will render at /lorem-ipsum/.

Template: footer