diff options
Diffstat (limited to 'examples/docs/src/layouts/Main.astro')
-rw-r--r-- | examples/docs/src/layouts/Main.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/docs/src/layouts/Main.astro b/examples/docs/src/layouts/Main.astro index f358f8045..47b09a18f 100644 --- a/examples/docs/src/layouts/Main.astro +++ b/examples/docs/src/layouts/Main.astro @@ -10,7 +10,7 @@ import DocSidebar from '../components/DocSidebar.tsx'; // It will run during the build, but never in the browser. // All variables are available to use in the HTML template below. const { content } = Astro.props; -const headers = content?.astro?.headers; +const headers = content.astro.headers; const currentPage = Astro.request.url.pathname; const currentFile = currentPage === '/' ? 'src/pages/index.md' : `src/pages${currentPage.replace(/\/$/, "")}.md`; const githubEditUrl = `https://github.com/USER/REPO/blob/main/${currentFile}` @@ -18,7 +18,7 @@ const githubEditUrl = `https://github.com/USER/REPO/blob/main/${currentFile}` // Full Astro Component Syntax: // https://docs.astro.build/core-concepts/astro-components/ --- -<html lang={ content.lang ?? 'en' }> +<html lang={ content.lang || 'en' }> <head> <title>{content.title}</title> |