Front-matter is the YAML block at the top of every Markdown file. It controls how Hexo and Inside render that specific piece of content.
Hexo Standard Fields
These are understood by Hexo itself, regardless of theme:
1 |
|
Inside Post-Specific Fields
These fields apply only to posts (files in source/_posts/):
Thumbnail
The thumbnail appears in post cards on the list page and as the header image on the post itself.
1 |
|
The image path is resolved relative to source/. Place image files in source/images/ and reference them as images/filename.jpg.
Sticky
Pin a post to the top of the archive list:
1 |
|
Posts are sorted by sticky descending, then by date descending.
Visible
Exclude a post from site search and sitemap while still publishing it:
1 |
|
Per-Page Feature Overrides
These fields work on both posts and pages. They override the global theme config for that specific item:
1 |
|
Content Flags
1 |
|
Metadata Display
Control what meta information appears below the title:
1 |
|
Encrypted Content
Password-protect a post so only readers with the correct code can read it:
1 |
|
The reader will see a password prompt instead of the article body. This uses Inside’s built-in cipher plugin. See Tag Plugins → for partial encryption (encrypting only a section of content).
Complete Post Example
1 |
|
Complete Page Example
1 |
|
Next Steps
- Tag Plugins → — Rich content tags, collapse, timeline, and more
- Content Configuration → — Global settings these fields override
