From 2de84adcf4030aaa4b2d0717ed865e92f762e65b Mon Sep 17 00:00:00 2001 From: Lukas Trombach Date: Fri, 21 Jun 2024 21:17:50 +1200 Subject: [PATCH 1/3] add hint regarding style and script tag locations in layout components --- src/content/docs/en/basics/layouts.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/docs/en/basics/layouts.mdx b/src/content/docs/en/basics/layouts.mdx index 38ef91e2e4f0a..315e35937c8ef 100644 --- a/src/content/docs/en/basics/layouts.mdx +++ b/src/content/docs/en/basics/layouts.mdx @@ -14,6 +14,8 @@ We conventionally use the term "layout" for Astro components that provide common But, there is nothing special about a layout component! They can [accept props](/en/basics/astro-components/#component-props) and [import and use other components](/en/basics/astro-components/#component-structure) like any other Astro component. They can include [UI frameworks components](/en/guides/framework-components/) and [client-side scripts](/en/guides/client-side-scripts/). They do not even have to provide a full page shell, and can instead be used as partial UI templates. +If a layout component contains a page shell, the `` element must be the parent of all other elements in the component. All [` ``` From 6d9f498016bfd320296017bbb3c6e8bea1384e18 Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Fri, 21 Jun 2024 12:00:17 -0300 Subject: [PATCH 3/3] link formatting --- src/content/docs/en/basics/layouts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/basics/layouts.mdx b/src/content/docs/en/basics/layouts.mdx index a41645d8e29e0..2e5d420c30002 100644 --- a/src/content/docs/en/basics/layouts.mdx +++ b/src/content/docs/en/basics/layouts.mdx @@ -14,7 +14,7 @@ We conventionally use the term "layout" for Astro components that provide common But, there is nothing special about a layout component! They can [accept props](/en/basics/astro-components/#component-props) and [import and use other components](/en/basics/astro-components/#component-structure) like any other Astro component. They can include [UI frameworks components](/en/guides/framework-components/) and [client-side scripts](/en/guides/client-side-scripts/). They do not even have to provide a full page shell, and can instead be used as partial UI templates. -If a layout component contains a page shell, the `` element must be the parent of all other elements in the component. All [`