@arcblock/gatsby-theme-www

7.34.5 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @arcblock/gatsby-theme-www

Weekly Downloads

2

Version

7.34.5

License

ISC

Unpacked Size

26.8 kB

Total Files

11

Last publish

Collaborators

  • wangshijun
  • polunzh
  • mave99a
  • gxw