@arcblock/gatsby-theme-www
v7.34.5
Published
gatsby config for building arcblock websites
Downloads
367
Readme
@arcblock/gatsby-theme-www
Gatsby theme that used by arcblock.io, abtwallet.io, and abtnetwork.io
Usage
If the content repo have no package.json
yet, create one with:
npm init -y
Then, add dependency for the content repo:
yarn add @arcblock/gatsby-theme-www gatsby
And gatsby-config.js
at root directory with content:
const path = require('path');
module.exports = {
plugins: [
{
resolve: require.resolve('@arcblock/www'),
},
{
resolve: require.resolve('@arcblock/gatsby-theme-www'),
options: {
pagesPath: [path.resolve('./src/pages/')],
},
},
],
};
Then add commands to start and build the site in package.json
"scripts": {
"dev": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve"
}
Enable local instant preview with:
npm run dev