This is a reference post to guide you when creating new local articles.
File Requirements:
- Location: All posts must be saved in the
posts/directory. - File Extension: Must end with
.md(e.g.,my-new-post.md). - Frontmatter: The metadata block at the top enclosed by
---is required. It must contain:title: The title of your post.date: The publication date inYYYY-MM-DDformat.
Markdown Cheat Sheet:
You can write normal markdown content below the second --- separator:
- Use
#,##,###for headings. - Use
**bold**or*italic*for formatting. - Create bulleted lists using
-or*. - Create numbered lists using
1.,2.. - Insert code blocks using triple backticks:
console.log("This is an example code block.");
To Publish Your Post:
Once you save this file, run the following command in your terminal to build the static files and publish them to Firebase:
npm run deploy