chenlijun99 / gatsby-theme-material-blog

Blog theme based on material-ui
https://gatsby-material-blog-theme.netlify.com/
MIT License
1 stars 0 forks source link
gatsby gatsby-theme material-ui

Gatsby

The Gatsby Material Design blog theme

npm CircleCI semantic-release styled with prettier

A Gatsby theme for creating a material-design blog.

Features

Installation

npm install --save gatsby-theme-material-blog

Usage

Theme options

Key Default value Description
basePath / Root url for all blog posts
contentPath content/posts Location of blog posts

Example usage

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-theme-material-blog`,
      options: {
        basePath: `/blog`,
      },
    },
  ],
}

Additional configuration

In addition to the theme options, there are a handful of items you can customize via the siteMetadata object in your site's gatsby-config.js.

This theme assumes that at least the fields present in the code block below are present.

// gatsby-config.js
module.exports = {
  siteMetadata: {
    // Used for the site title and SEO
    title: `My Blog Title`,
    // Used to provide alt text for your avatar
    author: `My Name`,
    // Used for SEO
    description: `My site description...`,
    // Used for social links in the root footer
    social: [
      {
        name: `GitHub`,
        url: `https://github.com/gatsbyjs`,
      },
      ...
    ],
  },
}

Environment variables

Algolia Search

In order to get Algolia Search functionality, you need to define the following variables: