Front Matter
Learn how to use frontmatter in Hexo blog posts (as intended for use in this theme).
Front Matter
Front matter is the metadata section of Hexo blog posts and pages, usually located at the beginning of the Markdown file. It uses YAML format to define properties of the post or page, such as title, date, type, comments, etc.
Example
Front Matter Properties
Property | Type | Description |
---|---|---|
title | string | Required Page title |
date | datetime | Required Page creation date |
type | string | Required Required for about, links, friends, moments, toolbox pages |
updated | datetime | Optional Page update date |
desc | string | Optional Page description |
aside | boolean | Optional Enable sidebar (default true) |
comment | boolean | Optional Show comments module (default true) |
cover | string | Optional Top image URL |
reprint | boolean | Optional Copyright (default original); true for reprint |
katex | boolean | Optional Enable katex (default false) |
locate | string | Optional Article creation location |
leftend | string | Optional Banner bottom left text |
rightend | string | Optional Banner bottom right text |
rightbtn | string | Optional Banner bottom right button text |
rightbtnlink | string | Optional Banner bottom right button link |
container | boolean | Optional Enable container (default true) |