From a7e66666e49e3286639439cc993869b3a87ff251 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Mon, 19 Jul 2021 18:23:39 -0700 Subject: tsconfig fix (#752) --- examples/docs/src/layouts/Main.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/docs/src/layouts') 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/ --- - + {content.title} -- cgit v1.2.3