Building a dynamic navigation component with Gatsby and Sanity
How to query data from a Sanity schema and use it to build a navigation component on a Gatsby powered website.
How to query data from a Sanity schema and use it to build a navigation component on a Gatsby powered website.
A problem I’ve been facing is how to remove content in Gatsby that has a deadline. Here I’ll show you the approach I’m using to filter content at query time using GraphQL and then automate the build process.
Perhaps the easiest way to format dates in Gatsby is at query-time using Gatsby’s GraphQL layer.
Watch mode allows you to see realtime content updates without having to manually re-run the build process.
Learn how to query structured content in Sanity with GraphQl and display the content in a Gatsby website
How to configure Gatsby to play nice with Sanity. Including configuring the gatsby-source-sanity plugin and some cool extra development features that ship with Sanity.
Once a month I curate a newletter for designers and developers interested in static sites, CSS and web performance. Check out past issues to get an idea.