























In our previous tutorials, we explored how to set up basic blog editing in CloudCannon's Content Editor for an Astro theme. We refactored our Collections, performed some small tidy-ups along the way, and implemented the ability to add components throughout your Markdown body content using CloudCannon’s Snippets feature.
Today, we’re taking the next step in our journey with the BigSpring Light Astro theme by implementing Bookshop for live editing. This powerful tool handles component importing into your page’s body content, and also connects your front matter fields directly to the HTML on your page, enabling real-time visual previews of your changes.
Bookshop serves two primary functions in our Astro site:
Instead of having to save, rebuild, and refresh to see your changes, Bookshop allows you to preview your modifications instantly in CloudCannon's Visual Editor. For non-developers, this can be a huge efficiency (and confidence) boost when making content changes to a website.
Want to learn more about CloudCannon and Bookshop? Check out CloudCannon’s documentation and the Astro Bookshop Guide for additional resources.
Here’s what we covered in this video tutorial:
1. Setting up the foundational structure
source/shared/astro/page.astro)2. Refactoring components
We methodically worked through our homepage, converting each section into a Bookshop component:
For each component, we:
*.astro and *.bookshop.yaml)3. Enhancing the editing experience
To improve the content editing experience in CloudCannon, we:
type: array inputsWith these changes implemented, our site now offers a component-based structure that’s easy to maintain and extend, and a significantly improved editing experience with properly configured input fields.
Content editors now have the ability to reorder, add, or remove components through a visual interface, with live previewing of all changes in the CloudCannon Visual Editor.
In our next tutorial, we’ll expand on our work by refactoring the rest of the site’s pages to use our newly created components. We’ll also explore creating new pages with these components, further leveraging the power of Bookshop and CloudCannon.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。