From dc6e89f0a32952568def085a7c6eb79fae697303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Seery?= Date: Sun, 3 Apr 2022 16:02:57 -0300 Subject: [PATCH] chore: updated examples to v0.26.0 (#2977) * New script behavior * Astro.request * Reverted `deno` to `node` * Updated subpath --- .../blog-multiple-authors/src/pages/authors/[author].astro | 5 ++--- examples/docs/src/components/HeadCommon.astro | 6 +++--- examples/docs/src/components/LeftSidebar/LeftSidebar.astro | 2 +- examples/docs/src/layouts/MainLayout.astro | 2 +- examples/docs/src/pages/index.astro | 2 +- examples/env-vars/src/pages/index.astro | 2 +- examples/framework-alpine/src/pages/index.astro | 2 +- examples/integrations-playground/src/pages/index.astro | 2 +- examples/non-html-pages/src/pages/index.astro | 2 +- examples/ssr/astro.config.mjs | 4 ++-- examples/subpath/astro.config.mjs | 3 ++- examples/with-vite-plugin-pwa/src/pages/index.astro | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/examples/blog-multiple-authors/src/pages/authors/[author].astro b/examples/blog-multiple-authors/src/pages/authors/[author].astro index c2ba49d39..bb1bc3aa2 100644 --- a/examples/blog-multiple-authors/src/pages/authors/[author].astro +++ b/examples/blog-multiple-authors/src/pages/authors/[author].astro @@ -11,19 +11,18 @@ export async function getStaticPaths() { } const { allPosts } = Astro.props; -const { params, canonicalURL } = Astro.request; const title = 'Don’s Blog'; const description = 'An example blog on Astro'; /** filter posts by author, sort by date */ -const posts = allPosts.filter((post) => post.frontmatter.author === params.author).sort((a, b) => new Date(b.frontmatter.date).valueOf() - new Date(a.frontmatter.date).valueOf()); +const posts = allPosts.filter((post) => post.frontmatter.author === Astro.params.author).sort((a, b) => new Date(b.frontmatter.date).valueOf() - new Date(a.frontmatter.date).valueOf()); const author = authorData[posts[0].frontmatter.author]; --- {title} - + - +
diff --git a/examples/integrations-playground/src/pages/index.astro b/examples/integrations-playground/src/pages/index.astro index 677026072..2ee717d6a 100644 --- a/examples/integrations-playground/src/pages/index.astro +++ b/examples/integrations-playground/src/pages/index.astro @@ -38,7 +38,7 @@ import '../components/Counter.js'; console.log('end partytown blocking script') - +