Sanity SEO done right: Open Graph, JSON-LD, fallbacks
The article discusses best practices for implementing SEO in Sanity projects. It emphasizes the importance of having a structured SEO baseline, including title, description, and Open Graph fields. The author also highlights the flexibility of Sanity in accommodating various content types while allowing users to define their own SEO strategies.
- ▪Every Sanity project should start with a title and description as the SEO baseline.
- ▪Sanity allows for a separate SEO tab for overriding default meta fields without leaving them blank.
- ▪JSON-LD should be generated automatically from structured content in Sanity to maintain consistency.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3923565) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Jono Posted on May 19 Sanity SEO done right: Open Graph, JSON-LD, fallbacks #sanity #seo #nextjs #ai Every Sanity project we ship starts with the same SEO baseline: a title and description on the document, an SEO tab that overrides them when needed, and Open Graph fields one layer deeper. Fallbacks all the way down, so the page always renders something sensible even when an editor forgets a field.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).