macana

Static site generator for Obsidian Vault

This page lists supported YAML frontmatter fields.

name

Name of the document. This appears the final URL path and affects links.

For example, if a file named /Foo.md has below frontmatter,

---
name: "Bar"
---

# Baz

the final URL would be like http://localhost:8080/Bar/. You should avoid reaching to this field.

title

Title of the document. By default, file name is used as a title.

description

Description text of the document.

lang

Language of the document. This field value goes to HTML’s lang tag, hence you should use language tag adheres to RFC 5646 - Tags for Identifying Languages.

createdAt

Creation time of the document. While you can use various date time format for this field, you should stick to Date Time String Format defined in ECMAScript (YYYY-MM-DDTHH:mm:ss.sssZ).

updatedAt

Update time of the document. While you can use various date time format for this field, you should stick to Date Time String Format defined in ECMAScript (YYYY-MM-DDTHH:mm:ss.sssZ).

defaultDocument

Whether this document is the default document of a generated website. If more than one documents have this field set on, behavior is undefined.