The Gatsby Theme Unicorn
A Gatsby theme for creating a blog with awesome typography.
Installation
Use the blog theme starter
This will generate a new site that pre-configures use of the blog theme.
gatsby new my-blog https://github.com/mohanmonu777/gatsby_starter_unicorn
Manually add to your site
npm install --save gatsby_theme_unicorn
Usage
Theme options
Key | Default value | Description |
---|---|---|
basePath |
/ |
Root url for all blog posts |
contentPath |
content/posts |
Location of blog posts |
assetPath |
content/assets |
Location of assets |
mdx |
true |
Configure gatsby-plugin-mdx (if your website already is using the plugin pass false to turn this off) |
Example usage
// gatsby-config.jsmoduleexports = plugins: resolve: `gatsby_theme_unicorn` options: // basePath defaults to `/` 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
// gatsby-config.jsmoduleexports = siteMetadata: // Used for the site title and SEO title: `Gatsby Theme Unicorn` // Used to provide alt text for your avatar author: `@mohan.tech` // Used for SEO description: `My site description...` // Used for social links in the root footer social: name: `Twitter` url: `https://twitter.com/MrNullPointer` name: `GitHub` url: `https://github.com/mohanmonu777`