From e1bc5366b3b03425965c1cb661e09da1dc9da2f4 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 | 6 ++- www/src/components/Button.astro | 2 +- www/src/components/Nav.astro | 6 +-- www/src/components/PluginSearchPage.jsx | 25 ++++------ 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 ++++++++++++------------ 12 files changed, 55 insertions(+), 66 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..3e12bff297 100644 --- a/www/src/components/BaseLayout.astro +++ b/www/src/components/BaseLayout.astro @@ -1,10 +1,14 @@ --- import Banner from './Banner.astro'; import Nav from './Nav.astro'; + +const version = await fetch('https://registry.npmjs.com/snowpack@latest') + .then((res) => res.json()) + .then((manifest) => manifest.version); --- -