Skip to content

Add a new blog post

Arpit Sheth edited this page Jul 30, 2020 · 1 revision
  1. Create a new folder inside /content/posts
  2. Create a new index.mdx file
  3. Add images to the post's folder that you want to reference in your blog post
  4. Add the frontmatter to your post's file.
    • Provide a title and date. The date must be in the format YYYY-MM-DD.
    • (Optional) Provide a very short description for your post. If no description is provided, an excerpt of the blog post will be used.
    • (Optional) List any tags that apply to your post
    • (Optional) Reference an image as your post's banner in the frontmatter. This banner image is used as your blog post's social image. If no banner is provided, the default siteImage (from siteMetadata) is used.
    • (Optional) Add a slug to the frontmatter to use a custom slug, e.g. slug: "/my-slug"
  5. Write your content below the frontmatter
---
title: Introduction to "Defence against the Dark Arts"
date: 2019-11-07
description: Defence Against the Dark Arts (abbreviated as DADA) is a subject taught at Hogwarts School of Witchcraft and Wizardry and Ilvermorny School of Witchcraft and Wizardry.
tags:
  - Tutorial
  - Dark Arts
banner: ./defence-against-the-dark-arts.jpg
---

Blog post content goes here...