An open API service indexing awesome lists of open source software.

https://github.com/ascorbic/gatsby-sanity-benchmark


https://github.com/ascorbic/gatsby-sanity-benchmark

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# Sanity Will it Build Example

Example page for Sanity as a source for "Will It Build".
Should/Will be generalized into e.g. a theme.

Queries the title, body and a cover image from Sanity. Creates pages for that and displays those three things as "Articles".
Those individual article pages and the homepage share a common "Layout" component (in src/components) that can be swapped (layout_1.js and layout_2.js) to simulate a code change in multiple pages.

## Update script

Make sure to add the environment variables in the `.env.example` file. To run the update script, you need to add a write token as well.

```
yarn update-post
```