Let's start migrating content from Blog Template:
We could migrate all our content to blog using the content folder as mentioned before.
Note that Electric has the same possible values to be passed to the
frontmatterof a post.
Electric blog frontmatter example:
---
title: "Markdown Post"
description: "Lorem ipsum dolor sit amet, consectetur adipisicing elit."
date: "February 02, 2017"
author: "Author Name"
layout: "blog"
---Gatsby blog frontmatter example:
---
author: Diego Nascimento
banner: images/flavor_wheel.jpg
date: 2016-12-17T15:04:10.000Z
description: The Coffee Taster’s Flavor Wheel, the official resource used by coffee tasters, has been revised for the first time this year.
title: Making sense of the SCAA’s new Flavor Wheel
---Changes:
frontmatter:
datefollow a date standard to Gatsby analyze and decode date. You can change time format ondatequery field on blog template file to another format, for example, from "MMMM DD, YYYY" to "DD MMMM, YYYY"banneris an optionalfrontmatterthat can be used to expose a banner for the post on blog list of our blog.
Note that we don't need to pass our values between quotation marks
Considering this, we can proceed just copying and paste our content from a markdown file into blog content folder.