惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
The Last Watchdog
The Last Watchdog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Troy Hunt's Blog
L
LINUX DO - 最新话题
C
Check Point Blog
T
Threat Research - Cisco Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
V
Vulnerabilities – Threatpost
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
S
Security @ Cisco Blogs
IT之家
IT之家
T
The Exploit Database - CXSecurity.com
The GitHub Blog
The GitHub Blog
D
Docker
Engineering at Meta
Engineering at Meta
AWS News Blog
AWS News Blog
S
Security Affairs
U
Unit 42
P
Palo Alto Networks Blog
V
Visual Studio Blog
Y
Y Combinator Blog
D
DataBreaches.Net
Forbes - Security
Forbes - Security
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
Security Latest
Security Latest
aimingoo的专栏
aimingoo的专栏
Simon Willison's Weblog
Simon Willison's Weblog
A
Arctic Wolf
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hacker News: Front Page
博客园 - 司徒正美
博客园 - Franky
宝玉的分享
宝玉的分享
TaoSecurity Blog
TaoSecurity Blog
Latest news
Latest news
Scott Helme
Scott Helme
MongoDB | Blog
MongoDB | Blog
量子位
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
Cisco Blogs
P
Privacy International News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog

CloudCannon Blog

Building with AI: Git-based vs headless vs traditional CMS CloudCannon + Astro: performance meets powerful content management Introducing the Astro Component Starter Introducing Jetstream — built on the Astro Component Starter Why we switched to the system font stack Redesigning CloudCannon’s docs with Diátaxis, Lume, and Pagefind Make content editing more visual: upgraded Editable Regions How Configuration Mode makes building editing interfaces easy Your hosting just got an upgrade (and a price cut) Custom testing domains for professional branding Managing multilingual content in CloudCannon Simplify team publishing with conflict resolution and domain tools Open Beta: Publishing Conflict Resolution Getting started with CloudCannon and Astro: Bookshop, components, and live editing Welcome to the CloudCannon Community! Omnichannel delivery is just marketing spin from API-based CMS companies Getting started with CloudCannon and Astro: Snippets and Collections Managing digital assets in CloudCannon: a guide to smart asset storage Understanding CloudCannon's branching workflows and Projects: a complete guide What is a static website? CloudCannon’s 2024 wrapped Getting started with CloudCannon and Astro: WYSIWYG blogging Jamstack vs. WordPress: reasons to make the change The top five static site generators for 2025 (and when to use them!) Free Jekyll themes for 2025: ten great community options Eleventy (11ty) vs. Hugo How to set up WYSIWYG editing with MkDocs Material The rise of static-first websites: why major brands are making the switch Watching your Core Web Vitals on Jamstack Understanding the difference between static, dynamic, and hybrid websites Looking for an alternative to Netlify CMS or Decap CMS? Designing components for your website editors: a CloudCannon case study Does my website look big in this? Six tips to lower your page weight Content is sacred — so own your revision history The eternal balancing act: load time vs. delay time Streamlined Headless Mode, Unified Configuration, and live data editing What is a headless CMS? Looking for a TinaCMS or Tina Cloud alternative? The ultimate guide to Hugo Sections Coming soon: Live config editing and data reloading Faster publishing workflows out now! Why information architecture matters for your website Website UX vs SEO: picking your battles Easily manage your multilingual Astro site in CloudCannon How you can optimize publishing workflows for your content team How you can optimize your CMS for SEO success How you can optimize your Content Editor for long-form articles How you can optimize your Visual Editor for page building Secure, swift, and stable: static sites for the financial sector Enhanced flexibility for teams with Custom Permissions Building static sites that scale The Inaugural 11ty International Symposium on Making Web Sites Real Good How to manage hundreds of connected websites with a Git-based headless CMS How we’re building CloudCannon for accessibility CloudCannon’s new editing improvements are here! Open Beta | New ways to collaborate on editing your websites Top 11 free Eleventy themes for 2024 Top 10 free Astro themes to use in 2024 Why choose a Git-based headless CMS over a monolithic DXP in 2024? Learning web development: a self-guided roadmap Partner Site of the Month: Blüthner Piano Centre, by Winteractive CloudCannon’s 2023 wrapup Let’s create a microblog with visual editing using Bookshop and Eleventy Update and visualize your branches with CloudCannon Projects What is a Git-based CMS and why you should use one CloudCannon secures SOC 2 certification The complete guide to growing your web development agency Automatically optimize your images with Eleventy Image and CloudCannon Share components and syndicate content with Site Mounting Partner Site of the Month: Cru Uncorked, by Ed Meehan New web component for responsive HTML tables Wrapping up HugoConf 2023 Partner Site of the Month: Van Dillen Antieke Bouwmaterialen, by Fulldev How to become a freelance web developer: a comprehensive guide Q3 2023: CloudCannon features and improvements 22 ways to deliver more value to your web development clients Partner Site of the Month: DC Gay Flag Football League, by Ed Cupaioli A new way to configure your CloudCannon sites CloudCannon — the official CMS partner of Eleventy Full CloudCannon support for Nuxt static sites Partner Site of the Month: Stadium Bike, by Insight Creative, Inc. HugoConf 2023, brought to you by CloudCannon DAM Support for Cloudflare R2 and DigitalOcean Spaces Eleventy (11ty) vs. Gatsby in 2023 – which SSG is best for you? How CloudCannon’s live editing works with Astro and Bookshop Partner Site of the Month: Fiducian, by Croissant & Baguette Eleventy (11ty) vs. Astro How to customize CloudCannon’s Client Sharing interface Let anyone, anywhere, edit your CloudCannon sites Top 23 free Astro themes for building out-of-this-world static sites in 2023 How Jampack optimizes our Eleventy website and improves performance Astro vs. Next.js CloudCannon.com is now built with Eleventy! Out-of-this-world support for all Astro users Introducing the CloudCannon Partner Program Full CloudCannon support for Gatsby Top 10 Free SvelteKit Themes for Building Lighting-Fast Static Sites in 2023 Enhanced CloudCannon support for Next.js users Upcoming CloudCannon Interface improvements (Open Beta) Creating sites, the Jamstack way
Keep your content consistent with input validation
2025-07-03 · via CloudCannon Blog

Your content team has accidentally published a 400-character meta description that gets brutally chopped off by Google. Or someone’s uploaded 17 images to what was supposed to be a "featured trio" gallery, blowing your design rules out of the water. We've been there. Let’s stop it happening again.

One of your most requested features has officially landed: with input validation, you get to be the rule-maker. Set the boundaries that make sense for your projects, your content teams, and your sanity. (And all validation happens before any content is saved in CloudCannon, which means any issues will be caught before they make it to your live site.)

How it works Direct link to this section

The new validation system integrates seamlessly into your existing CloudCannon workflow. When editors try to save content that doesn’t meet your validation rules, the interface will clearly highlight what needs fixing and how to resolve it.

Components in your live preview will continue to render regardless of validation status — it’s up to your components to handle invalid input gracefully. They might show placeholders, warnings, or other indicators when required data is missing or invalid.

Validation rules you can set Direct link to this section

The initial release includes the most commonly requested validation types:

  • Text length validation keeps content within bounds — perfect for SEO titles and meta descriptions that need to meet specific character limits.
  • Number ranges ensure numeric inputs stay within acceptable values, whether that's pricing, quantities, or measurements.
  • Array controls let you set minimum and maximum item counts for galleries, featured lists, and card collections. You can also enforce uniqueness to prevent duplicate entries.
  • Date and time ranges restrict when events can be scheduled or limit historical data to specific periods.
  • File size limits prevent oversized images from slowing down your site.
  • Pattern matching validates formats like email addresses, URLs with specific protocols, or custom patterns like product codes.
  • Conditional validation works intuitively with your existing input configuration. CloudCannon automatically skips validation for any inputs that are currently hidden or disabled — no additional setup required.
  • Custom error messages give you complete control over how validation errors are presented to your content teams. Every validation rule supports a corresponding _message key, so you can provide clear, contextual guidance instead of generic error messages. (Thanks to our community members for feedback that prompted this additional feature!)

Real-world examples Direct link to this section

Here’s how a few sample validation rules look in practice:

Keeping blog titles SEO-friendly with custom guidance Direct link to this section

title: 'How to optimize your website'

_inputs:
title:
type: text
options:
max_length: 60
max_length_message: 'Keep your title under 60 characters for better readability'
min_length: 10
min_length_message: 'Title should be at least 10 characters for clarity'
required: true
required_message: 'A descriptive title is required for this post'

featured_products:
- /products/laptop.md
- /products/phone.md
- /products/tablet.md

_inputs:
featured_products:
type: array
options:
min_items: 3
max_items: 6
unique_on: '$'

Validating email newsletter signup forms Direct link to this section

contact_email: editor@example.com

_inputs:
contact_email:
type: email
options:
pattern: '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}'
pattern_message: 'Please enter a valid email address'


Building for your workflow Direct link to this section

We’re always aiming for features that appeal to the sweet spot where developer control meets editor clarity. Here, you get to set the guardrails that keep your data squeaky clean, while your content team gets the kind of helpful nudges that actually make their job easier.

It’s the kind of win-win that (hopefully) makes everyone’s day a little bit better.

What’s coming next Direct link to this section

While not part of the initial release, we’re also exploring JSON Schema validation for more complex scenarios. This would enable advanced object validation and intricate array rules — like ensuring only one item in a list is marked as "featured" while maintaining unique identifiers across all items. Let us know your thoughts in the Community!