@reflexjs/gatsby-theme-core

0.8.4 • Public • Published

@reflexjs/gatsby-theme-core

The core theme for Reflex. This adds a Page type.

Installation

npm i @reflexjs/gatsby-theme-core

Configuration

// gatsby-config.js

module.exports = {
  plugins: [`@reflexjs/gatsby-theme-core`],
}

Options

// gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: `@reflexjs/gatsby-theme-core`,
      options: {
        contentPath: `content/pages`,
        imagesPath: `content/images`,
        basePath: ``,
        mdxRemarkPlugins: [],
        gatsbyRemarkPlugins: [],
        remarkPlugins: [],
      },
    },
  ],
}

Data models

Page

type Page implements Node @dontInfer {
  id: ID!
  title: String
  excerpt: String
  slug: String
  body: String
}

Usage

Place your pages inside content/pages as follows:

site
  └── content
    └── pages
      └── a-page.mdx

Then add content to your page:

---
title: A page
excerpt: Omnis architecto praesentium itaque eaque quasi.
---

Write markdown or use components here.

## Heading 2

<Button bg="primary">Button</Button>

Documentation

Read the docs at https://reflexjs.org/docs/pages.

Package Sidebar

Install

npm i @reflexjs/gatsby-theme-core

Weekly Downloads

5

Version

0.8.4

License

MIT

Unpacked Size

25.3 kB

Total Files

27

Last publish

Collaborators

  • arshad