@arcblock/gatsby-theme-www

gatsby config for building arcblock websites

Usage no npm install needed!

<script type="module">
  import arcblockGatsbyThemeWww from 'https://cdn.skypack.dev/@arcblock/gatsby-theme-www';
</script>

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