Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags rendered before charset #5

Open
FlorianWerndl opened this issue May 30, 2023 · 2 comments
Open

Tags rendered before charset #5

FlorianWerndl opened this issue May 30, 2023 · 2 comments

Comments

@FlorianWerndl
Copy link

Hi, as far as I can see all tags are rendered on top of head section. Afaik the <meta charset="" /> Tag should appear before other tags and e.g. lighthouse test will complain about this. Any possibility to avoid or change this behavior?

@verisgit
Copy link

I'm finding the same issue, the seo tags are all being rendered outside the leading to an invalid HTML page and broken charset declaration.

@verisgit
Copy link

verisgit commented Dec 26, 2023

Actually, the issue was the theme author had structured the layout in a way that the SEO component was being injected prior to the HTML tag.

Make sure your head component includes a slot and then you can pass the AstroSeo content into it as follows:

<AstroSeo
***your astroseo content***
/>
</HeadComponent>
<OtherComponent1 />
<OtherComponent2 />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants