From 81df3e30e269b8fa987fb4227ce9e3935ee450f4 Mon Sep 17 00:00:00 2001 From: Drew Powers Date: Fri, 25 Jun 2021 16:59:03 -0600 Subject: [PATCH] Update Astro to latest --- www/package.json | 2 +- www/src/components/BaseHead.astro | 6 +-- www/src/components/BaseLayout.astro | 5 +- www/src/components/Button.astro | 2 +- www/src/components/Nav.astro | 6 +-- www/src/components/PokemonLookup.astro | 2 +- www/src/components/Subnav.astro | 4 +- www/src/layouts/content-with-cover.astro | 2 +- www/src/layouts/content.astro | 2 +- www/src/layouts/post.astro | 2 +- www/yarn.lock | 62 ++++++++++++------------ 11 files changed, 44 insertions(+), 51 deletions(-) diff --git a/www/package.json b/www/package.json index 09f768de1b..4504f2a396 100644 --- a/www/package.json +++ b/www/package.json @@ -8,7 +8,7 @@ "copy": "node scripts/copy.js" }, "dependencies": { - "astro": "~0.13.0", + "astro": "^0.15.1", "date-fns": "^2.19.0", "docsearch.js": "^2.6.3" } diff --git a/www/src/components/BaseHead.astro b/www/src/components/BaseHead.astro index ed86c14ba2..4bd633526f 100644 --- a/www/src/components/BaseHead.astro +++ b/www/src/components/BaseHead.astro @@ -1,9 +1,5 @@ --- -import Nav from './Nav.astro'; - -export let title: string; -export let description: string; -export let permalink: string; +const { title, description, permalink } = Astro.props; --- diff --git a/www/src/components/BaseLayout.astro b/www/src/components/BaseLayout.astro index c8570aada1..fb17a5be94 100644 --- a/www/src/components/BaseLayout.astro +++ b/www/src/components/BaseLayout.astro @@ -1,10 +1,13 @@ --- import Banner from './Banner.astro'; import Nav from './Nav.astro'; + +// TODO: allow fetch() in components & layouts: https://github.com/snowpackjs/astro/issues/551 +let version = '3.7.0'; --- -