August 2018 Summaries
4 posts from Sanity
Filter
Month:
Year:
Post Summaries
Back to Blog
After configuring schemas and publishing content to the API in a Sanity project, creating a frontend, app, or service that uses this setup can be effectively managed through a monorepo structure. This approach, which Sanity itself utilizes, allows for version control over schemas and integration of the content studio into Continuous Integration workflows, facilitating collaboration and consistency across projects. A monorepo is essentially a simple folder structure with separate folders for the studio, frontend, and services, each containing their respective configurations and dependencies. This setup supports the sharing of UI components and other assets, thanks to Sanity Studio's foundation in React, and can be managed with tools like Lerna for easier versioning and bootstrapping if the project expands or packages need to be published. For those uncertain about structuring their code, engaging with the Sanity community is encouraged for guidance.
Aug 20, 2018
397 words in the original blog post.
The text provides a practical example of integrating Sanity, a headless CMS, with design tools like Sketch and InVision’s Craft plugin to streamline the design process by enabling cross-disciplinary collaboration. It emphasizes the ease of installation and usage of Sanity, which allows developers and editors to work together to create an editorial interface. The process involves creating a query using Sanity's API, designing placeholders in Sketch, loading content from Sanity into these placeholders via Craft, and duplicating content to populate design mock-ups. This example illustrates how content management and design can be effectively merged, allowing teams to experiment and adapt their designs based on real content, thus enhancing the overall design workflow. Additionally, the text hints at the versatility of Sanity in various applications, encouraging community engagement to explore further innovative uses.
Aug 19, 2018
680 words in the original blog post.
Exploring the processing of RSS feeds for podcasts using command-line interfaces, Express, and Serverless functions, the text discusses handling user-generated data with varying field presence by employing modern JavaScript (ES6) features. Initially, the process involved conditional application of new keys to objects, but this approach was cumbersome and lacked clarity. The author then transitions to a more concise and efficient method using parameter object destructuring and the spread syntax, which facilitates cleaner and more testable code. This approach is demonstrated in a function that parses episode data, illustrating the streamlined handling of optional fields and the benefits of incorporating ES6 syntax in practical applications such as podcast feeds implemented with express.js and Netlify lambdas.
Aug 13, 2018
357 words in the original blog post.
When images are uploaded to Sanity, several processes occur automatically, including the extraction of color palettes, dimensions, aspect ratios, and potentially EXIF data and geolocation if the schema is configured accordingly. Additionally, a low-resolution version of the image is stored in the metadata, enabling an immediate rendering of a small, blurry preview before the full-resolution image is downloaded to the client. This functionality supports efficient art direction and eliminates the need for storing multiple versions of an image. A detailed post on CSS-Tricks, complete with live code examples on Codepen, explains how to utilize this metadata effectively within Sanity.
Aug 10, 2018
147 words in the original blog post.