@agileana/agileana-theme

Base theme for Agileana

Usage no npm install needed!

<script type="module">
  import agileanaAgileanaTheme from 'https://cdn.skypack.dev/@agileana/agileana-theme';
</script>

README

Agileana's Gatsby Base Theme

This is a Gatsby theme using WordPress as a backend, it's intended to be used as a base, if you try to run this directly you'll get an error.

Try to keep this theme as generic as possible, so it can be overridden by final themes and also can be re-used easily.

How to use this theme

You'll have to create a new folder with two files (these are the minimum requirements):

  • package.json
{
  "private": true,
  "name": "some-name",
  "version": "0.0.1",
  "license": "MIT",
  "scripts": {
    "build": "gatsby build",
    "clean": "gatsby clean",
    "develop": "gatsby develop"
  },
  "dependencies": {
    "gatsby": "^2.15.16",
    "@agileana/agileana-theme": "*",
    "react": "^16.9.0",
    "react-dom": "^16.9.0"
  },
  "devDependencies": {
    "prettier": "^1.18.2"
  }
}
  • gatsby-config.js
require("dotenv").config({
  path: `.env.${process.env.NODE_ENV}`,
})

module.exports = {
  plugins: [
    {
      resolve: "@agileana/agileana-theme",
      options: {
        // Override all the options set in the gatsby-config.js file of this package
      }
    }
  ]
}

For more information refer to Gatsby Themes API Reference