- Sanity.io integration
- Styled with styled-components
- Search Support for Posts with elasticlunr-search
- Dark Mode
- Featured Posts Section
- Pagination
- Home Page, Blog Archive Page, Blog Post Page
- Automatic XML Sitemap and Robots.txt genration
- Responsive design
Use the Gatsby CLI to create a new site, specifying the Flat Magazine starter.
# Create a new Gatsby site using the Flat Magazine starter
gatsby new blog https://github.com/damnitrahul/gatsby-starter-flat-magazine
Supply your sanity.io tokens to gatsby-source-sanity
options in gatsby-config.js
{
resolve: 'gatsby-source-sanity',
options: {
projectId: [YOUR_SANITY_PROJECT_ID],
dataset: [YOUR_SANITY_PROJECT_DATASET],
token: [YOUR_SANITY_TOKEN]
}
Clone the customised Sanity Studio for Flat Magazine HERE
Setup the Studio with your credential, Deploy GraphQL API and Start publishing your content
Navigate into your new site’s directory and start it up.
cd blog
gatsby develop
Your site is now running at http://localhost:8000
!
Note: You'll also see a second link: http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
Open the blog
directory in your code editor of choice and edit src/templates/index-template.js
. Save your changes and the browser will update in real time!
Netlify CMS can run in any frontend web environment, but the quickest way to try it out is by running it on a pre-configured starter site with Netlify. Use the button below to build and deploy your own copy of the repository:
After clicking that button, you’ll authenticate with GitHub and choose a repository name. Netlify will then automatically create a repository in your GitHub account with a copy of the files from the template. Next, it will build and deploy the new site on Netlify, bringing you to the site dashboard when the build is complete.