Skip to main content
Community Plugin
View plugin on GitHub
See starters using this

Welcome to gatsby-source-websites 👋

Version Documentation Maintenance License: MIT

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