0.0.5 ā€¢ Published 5 years ago

gatsby-source-websites v0.0.5

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

a starter repo for creating gatsby plugins in typescript

šŸ  Homepage

Install

npm install gatsby-source-websites

or

yarn add gatsby-source-websites

Setup

{
  plugins: [
    {
      resolve: `gatsby-source-websites`
      options: {
        websites: [
          {
            name: `My Super Fresh Website`,
            slug: `my-super-fresh-website`,
            url: `https://superfreshsite.com`,

            // Optional
            description: `This is a super fresh site I build because I'm super fresh`,
            repo: `https://github.com/glweems/superfreshsite`
          },
          {
            // Add another website with same info
          }
        ]
        // Website screenshot options
        sizes: ['1920x1080','1920x1080'],
        delay: 10,
        crop: false,

        // Defaults are
        // sizes: ['1920x1080'],
        // delay: 2,
        // crop: true,
      }
    }
  ]
}

Usage

Query info through graphql

query MyWebsites {
    allWebsites {
        nodes {
            name
            slug
            url
            description
            repo
        }
    }
}

Author

šŸ‘¤ Garrett Weems gwgraphicdesign@gmail.com

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2019 Garrett Weems <gwgraphicdesign@gmail.com>. This project is MIT licensed.


This README was generated with ā¤ļø by readme-md-generator