Repository navigation
fix(astro): set document title from ui.brand.name - #1658
GlitchedCloud wants to merge 1 commit into
Conversation
The Astro integration now reads the brand name from the keystatic config (ui.brand.name) and injects it as the document <title>. A minimal <html> layout with required meta tags is also added to the internal CMS page.
|
|
Hey team! Thanks for your awesome work on this project! I've been having a play around with Keystatic using the Astro Integration and noticed that it doesn't set a document title in the browser. For other integrations, a component is exposed and the title can be set on the page. However, with the Astro integration the page is rendered at /keystatic so I propose to set the document title based on the ui.brand config and fall back to Keystatic. Following a similar approach to the sidebar. While researching this issue I also came across issue #1464 from last year - which seems to be the same issue and to have come to a similar conclusion on how to resolve. Cheers, |
Fixes #1464
The Astro integration now reads the brand name from the keystatic config (ui.brand.name) and injects it as the document <title>. A minimal layout with required meta tags is also added to the internal CMS page.