When using the custom page StarlightPage, how to manage two <html> labels?
#2585
Replies: 3 comments
-
|
If you're creating a custom page, e.g. ---
// src/pages/custom.astro
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
---
<StarlightPage frontmatter={{ title: 'My custom page' }}>
<p>This is the custom page content.</p>
</StarlightPage>There is no need to also include your own |
Beta Was this translation helpful? Give feedback.
-
|
In my case(as above), the docs(starlight website) is a part of the website, my website has an I read the source code of Starlight, the |
Beta Was this translation helpful? Give feedback.
-
|
Since Starlight released version 0.32, it supports route middleware, we can better handle this, there is an example of this to override the Starlight page, Custom page component. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I used a custom page to make the starlight layout as a part of the website, here are two
<html>pages on my website.The root website at https://starlight-squidex.netlify.app/ has a

<html>page.And the Starlight page has another

<html>page. you can visit it at https://starlight-squidex.netlify.app/column/article/c47961ee-ff4c-4fbb-b335-017487e75377Beta Was this translation helpful? Give feedback.
All reactions