gatsby-source-websites
v0.0.5
Published
a starter repo for creating gatsby plugins in typescript
Downloads
2
Maintainers
Readme
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 [email protected]
- Github: @glweems
🤝 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 [email protected]. This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator