0.8.4 • Published 3 years ago
@reflexjs/gatsby-theme-core v0.8.4
@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.
0.8.4
3 years ago
0.8.3
3 years ago
0.8.2
3 years ago
0.8.1
3 years ago
0.8.0
3 years ago
0.7.1
3 years ago
0.7.0
3 years ago
0.6.0
3 years ago
0.5.4
4 years ago
0.5.3
4 years ago
0.5.2
4 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.2
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.3.2
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.7
4 years ago
0.1.1
4 years ago
0.1.6
4 years ago
0.1.0
4 years ago