diff options
author | 2021-07-19 18:23:39 -0700 | |
---|---|---|
committer | 2021-07-19 18:23:39 -0700 | |
commit | a7e66666e49e3286639439cc993869b3a87ff251 (patch) | |
tree | e7d33647bdc5099a5b23268aab11fcae3d78628b /examples/docs/src | |
parent | 11100d62ef02a90ea9d0615b942e8839adc0ea45 (diff) | |
download | astro-a7e66666e49e3286639439cc993869b3a87ff251.tar.gz astro-a7e66666e49e3286639439cc993869b3a87ff251.tar.zst astro-a7e66666e49e3286639439cc993869b3a87ff251.zip |
tsconfig fix (#752)
Diffstat (limited to 'examples/docs/src')
-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> |