Getting Started with Remark Frontmatter
Contents
Features
- Markdown parsing with Remark
- Frontmatter support using gray-matter
- HTML output with Rehype
- Multiple document support
Frontmatter
Frontmatter is a way to add metadata to your markdown files. It's placed at the top of your file between triple dashes (---
). Here's a template you can use:
---
title: Your Document Title
date: YYYY-MM-DD
tags:
- tag1
- tag2
- tag3
---
Frontmatter Fields
title
: The title of your documentdate
: The date in YYYY-MM-DD formattags
: A list of tags for categorization
Usage
- Create markdown files in the
docs
directory - Add frontmatter to your markdown files using the template above
- Access your documents through the web interface