Flexible yet structured: how we manage block content for ChromeOS.dev - Sam Richard

Опубликовано: 20 Август 2024
на канале: Sanity
283
5

ChromeOS.dev is the documentation and developer information portal for ChromeOS developers, which means that most of what our users come to our site for is block content. Go beyond sample content types and start to really fine tune the balance between authoring and presentation and challenges start to stack up. I'll share how we think about content modeling, how we've translated that into Sanity, with live, open-source code samples, and show how we render it out in Astro while keeping our client-side JavaScript payload as small as possible.

Get Sanity Certified: https://www.sanity.io/learn

Start your Sanity project here: https://www.sanity.io/get-started

00:00 Introduction
00:58 Open Source Site
01:19 Content Management Needs
02:09 Content Modeling Patterns
02:44 Types of Content Models
03:23 Reusable Fields
04:36 Flexibility with Sanity
06:05 Hero Banner Example
07:22 Combining Sub Schemas
08:32 Custom Fields
11:32 Practical Examples
13:09 Consistent Features
14:21 Conclusion