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

Actually inject the schema to homepage on build #447

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

taroj1205
Copy link
Collaborator

This is a fix to #436 which adds a schema to improve SEO.

Closes #390

const onHomepage = Astro.url.origin === 'https://zen-browser.app/'

This does not work on Astro as it builds on server, which does not have the domain as its url origin.
I have fixed it to be an optional boolean prop which can be passed from index.astro.

@mauro-balades mauro-balades merged commit 2f502f5 into zen-browser:main Jan 31, 2025
1 check passed
@taroj1205 taroj1205 deleted the fix/seo branch January 31, 2025 22:35
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

Successfully merging this pull request may close these issues.

Add Structured Data to the Website
2 participants