Skip to content

Category: SANITY.io

  • Using conditional fields in SANITY for better links
    SANITY.io has just released conditional fields for their content studio which enables developer superpowers to fine tune the editing experience in ways that just weren't possible before. You can now conditionally hide and show fields in the editor based on content in other fields. Heyo! This post…

  • How to setup a staging website with SANITY
    Heads up! This guide uses an experimental feature of SANITY. Did you know that you can easily give your client a staging environment with SANITY? Even on their developer plan? Staging environments empower content editors and developers to test major content and code revisions without fear of…

  • Form submission using Gatsby, SANITY, Netlify and React Hook Form
    Heads up this guide was written with v6 of react-hook-form, v7 introduced some changes that will need updates from this code. Check out the migration guide for more info. Buckle up. This is a big one. We are going to walk through creating a contact form in Gatsby that submits to both an email…

  • Geocoding with Gatsby and SANITY.io
    Geocoding is the process of turning a regular address into latitude and longtitude coordinates that can be used in a mapping application like Google Maps or LeafletJS . I am going to walk through setting up a SANITY.io schema, querying the SANITY.io API via gatsby-node.js , passing the query…

  • Validation snippets for SANITY.io
    A great feature of SANITY.io is the ability to add field validation to schema types. This can ensure data conforms to specific patterns, e.g. a ZIP code is actually a valid ZIP code or an email field is a valid email. This brief article covers just a few of the ways you can validate a field, I…

  • Using Theme UI with SANITY.io
    Gatsby, SANITY.io and Theme UI are quickly becoming my go-to stack of development tools. Gatsby on the frontend. SANITY on the backend. Theme UI as the design system interface. Combining these three tools has been fairly smooth, but it took me a while to realize I could link Theme UI design…

  • Getting Started With Gatsby-Theme-Catalyst-Writer
    This theme has been depreciated, instead use gatsby-theme-catalyst-hydrogen , which is an updated version of this theme with an improved API. There is a complete tutorial for this updated theme you can follow. This Gatsby theme is for freelance writers and journalists who want a fast, easy to…

Illustrations by Diana Valeanu
© 2022 Eric Howey - eric@erichowey.dev

In the spirit of reconciliation, I acknowledge that I live, work and play on the traditional territories of the Blackfoot Confederacy (Siksika, Kainai, Piikani), the Tsuut’ina, the Îyâxe Nakoda Nations, the Métis Nation (Region 3), and all people who make their homes in the Treaty 7 region of Southern Alberta.