Socket
Socket
Sign inDemoInstall

gatsby-theme-blog-ml-core

Package Overview
Dependencies
13
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gatsby-theme-blog-ml-core

This is the theme [Mortar Labs](https://mortar-labs.com) uses to add blog functionality to client sites.


Version published
Weekly downloads
14
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Gatsby Theme: Blog Mortar Labs

This is the theme Mortar Labs uses to add blog functionality to client sites.

Setup

yarn install gatsby-theme-blog-ml

Quick Setup

// gatsby-config.js
module.exports = {
  plugins: [`gatsby-theme-blog-ml-core`, "gatsby-plugin-netlify-cms"]
};

Options

// gatsby-config.js
plugins[
  {
    resolve: `gatsby-theme-blog-ml-core`,
    options: {
      contentPath: "", // where the posts.mdx will live defaults to `static/posts`
      assetPath: "" // where the imgs (or other assets) will live defaults to `static/images`
    }
  }
];

NetlifyCMS

Check out static/admin/config.yml to see an example NetlifyCMS setup that works with the theme default values.

Component Shadowing

The components and pages are unstyled by design and meant to be shadowed. Check out the src directory to shadow any of the pages/components/templates the theme provides.

src
├── components
│   ├── ...
├── gatsby-theme-blog-ml-core
    ├───components
    ├───── BlogPreview.js
    ├───── ...
    ├── templates
    ├────── post-page.js
    ├────── ...
    └── pages
        └─── blog
             ├── index.js
             ├── ...

Example

See example project for full usage example.

Contribute

Ideas? Issues? Open an issue or a PR!

FAQs

Last updated on 29 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc