Content · Metadata
Front matter.
Nift supports conventional YAML front matter on tracked content and an explicit external front-matter file in .nift/tracked.json.
Inline YAML front matter
---
type: post
title: Nift 4.3 released
draft: false
tags:
- nift
- release
--- The front-matter block is metadata and is removed before the content body is rendered. Its values use Nift's ordinary null, boolean, number, string, array and object value model. During the page build the object is available as frontmatter.
$[frontmatter.title]
$[frontmatter.tags.size()] External front matter
{
"name": "posts/generated",
"title": "Generated post",
"frontmatter": "metadata/posts/generated.yaml"
} External front matter is project-confined and can currently be YAML or JSON. This is useful when another tool or agent owns metadata separately from the authored body.
Exactly one source
Nift does not merge two front-matter sources and has no hidden precedence rule. Use inline front matter, configured external front matter, or neither.
A tracked type may supply the content type separately. If both tracked configuration and front matter provide a type, they must agree.