From a9d9bb8108dab8f33e1bbf8d0d64d89ff3aed524 Mon Sep 17 00:00:00 2001 From: Michal Materowski Date: Sat, 15 Nov 2025 20:37:13 +0100 Subject: [PATCH] feat: add editing_contraints for layouts tutorial page As mentioned in #1657 (2): After attempting to create a file with invalid filename the modal with unclear message pops up - editing_contraints werer missing for Layouts file --- .../content/tutorial/03-sveltekit/02-routing/02-layouts/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/svelte.dev/content/tutorial/03-sveltekit/02-routing/02-layouts/index.md b/apps/svelte.dev/content/tutorial/03-sveltekit/02-routing/02-layouts/index.md index c24e1f55a3..977a7f82fb 100644 --- a/apps/svelte.dev/content/tutorial/03-sveltekit/02-routing/02-layouts/index.md +++ b/apps/svelte.dev/content/tutorial/03-sveltekit/02-routing/02-layouts/index.md @@ -1,5 +1,6 @@ --- title: Layouts +editing_constraints: { 'create': ['/src/routes/+layout.svelte'] } --- Different routes of your app will often share common UI. Instead of repeating it in each `+page.svelte` component, we can use a `+layout.svelte` component that applies to all routes in the same directory.