The docs and the starter project seem to disagree about putting everything in html tags in layouts. #10532
Labels
improve documentation
Enhance existing documentation (e.g. add an example, improve description)
📚 Subject area/topic
layouts
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/basics/layouts/
📋 Description of content that is out-of-date or incorrect
In the docs about layouts, it says "However, if a layout component does contain a page shell, its element must be the parent of all other elements in the component. All <style> or <script> elements must be enclosed by the tags."
In the barebones project after 'npm create astro', the Layout.astro file has the style tag outside of the html tag. I don't know if this is actually inconsistent. Maybe the style tag is being used in a different way in the starter. I just noticed it while I was learning Astro.
(If this issue should have gone elsewhere, my bad.)
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
The text was updated successfully, but these errors were encountered: