2.0.0 ā€¢ Published 4 years ago

gatsby-theme-minimalism v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

gatsby-theme-minimalism

Publish

It's a simple Gatsby theme based on Chakra UI for blog and static website. Use it easily to create contents with .md format.

Demo

Preview

šŸš€ Getting started

npm i gatsby-theme-minimalism
## or
yarn gatsby-theme-minimalism

How to use

Edit gatsby-config.js and replace siteMetadata by the following configs:

module.exports = {
  siteMetadata: {
    title: '',
    author: 'Author Name',
    authorDescription: 'Author description here!',
    description: 'Site description',
    siteUrl: 'https://examplesite.com',
    seoKeywords: [],
    location: 'Hong Kong',
    email: 'no-reply@email.com',
    social: {
      github: 'github',
      linkedin: '',
      facebook: 'facebook',
      instagram: 'instagram',
      twitter: 'twitter',
      medium: '',
    },
  },
};

And add the following configs to plugins array:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-theme-minimalism',
      // You can edit the following options, or ignore them if you don't care.
      // Note that siteName is required for RSS.
      options: {
        siteName: '',
        mapId: '',
      },
    },
  ],
};
OptionsRequired?Description
siteName (string)YRequired for RSS
mapId (string)NGoogle Maps My Maps ID for about page, will not render if empty

Writing contents and replacing images

Check example-site for the sample folder structure for blog posts, about page and projects page.

You can replace the markdown files in content to update your website. You can change the images by replacing images in assets folder.

.
ā”œā”€ā”€ assets
|   ā”œā”€ā”€ profile.jpg
|   ā””ā”€ā”€ ...
ā”œā”€ā”€ content
|   ā”œā”€ā”€ about
|   |   ā””ā”€ā”€ index.md
|   ā”œā”€ā”€ blog
|   |   ā”œā”€ā”€ 2020
|   |   |   ā””ā”€ā”€ title
|   |   |       ā””ā”€ā”€ index.md
|   |   ā””ā”€ā”€ ...
|   ā”œā”€ā”€ notes
|   |   ā”œā”€ā”€ 2020
|   |   |   ā””ā”€ā”€ title
|   |   |       ā””ā”€ā”€ index.md
|   |   ā””ā”€ā”€ ...
|   ā””ā”€ā”€ projects
|       ā””ā”€ā”€ title
|   |       ā””ā”€ā”€ index.md
ā””ā”€ā”€ ...

Customizing the theme

To customize the colors used in the theme, shadow the files inside src/gatsby-theme-minimalism/themes. To extend the colors usage, import the base colors and export a new color object. Check Component Shadowing for the usage.

Author

Questions or bugs report?