diff --git a/www/src/pages/blog/astro-018.astro b/www/src/pages/blog/astro-018.astro index 147e53208..563a91055 100644 --- a/www/src/pages/blog/astro-018.astro +++ b/www/src/pages/blog/astro-018.astro @@ -7,7 +7,7 @@ import BlockQuote from '../../components/BlockQuote.astro'; import GoogleAnalytics from '../../components/GoogleAnalytics.astro'; import Note from '../../components/Note.astro'; import Shell from '../../components/Shell.astro'; -import { mediaQueries } from '../../config.js'; +import { mediaQueries } from '../../config'; let title = 'Astro 0.18 Release'; let description = `Introducing: Responsive partial hydration • Solid.js support • Lit SSR support • Named slots • Global style support • and more!`; diff --git a/www/src/pages/blog/astro-019.astro b/www/src/pages/blog/astro-019.astro index d0256ccc1..68c2f0e99 100644 --- a/www/src/pages/blog/astro-019.astro +++ b/www/src/pages/blog/astro-019.astro @@ -7,7 +7,7 @@ import BlockQuote from '../../components/BlockQuote.astro'; import GoogleAnalytics from '../../components/GoogleAnalytics.astro'; import Note from '../../components/Note.astro'; import Shell from '../../components/Shell.astro'; -import { mediaQueries } from '../../config.js'; +import { mediaQueries } from '../../config'; let title = 'Astro 0.19'; let description = `Introducing: Next.js-inspired dynamic routing • Astro.resolve() • client:only components • translations • and more!`; diff --git a/www/src/pages/blog/index.astro b/www/src/pages/blog/index.astro index 410ac1727..891b3dbb2 100644 --- a/www/src/pages/blog/index.astro +++ b/www/src/pages/blog/index.astro @@ -7,6 +7,8 @@ let title = 'Astro Blog'; let description = 'Everything you need to know about Astro, direct from mission control.'; let permalink = 'https://astro.build/blog'; let lang = 'en'; +const pages = import.meta.globEager('./{**, !index}.astro'); +console.debug(pages['./demo-day-2021-09.astro']); --- @@ -67,6 +69,7 @@ let lang = 'en';

{description}

+ Get a sneak preview of what's next for Astro, including our new Vite build engine and WASM-powered Go compiler. diff --git a/www/src/pages/blog/netlify-astro-hosting-sponsorship.astro b/www/src/pages/blog/netlify-astro-hosting-sponsorship.astro index dc434c565..2286b0df9 100644 --- a/www/src/pages/blog/netlify-astro-hosting-sponsorship.astro +++ b/www/src/pages/blog/netlify-astro-hosting-sponsorship.astro @@ -1,4 +1,16 @@ --- +export let title = "Netlify Becomes Astro's Official Hosting Partner"; +export let description = `We are happy to announce that Netlify has become Astro’s first corporate sponsor and exclusive hosting partner, donating $2,500 each month towards the ongoing open source maintenance and development of Astro.`; +export let publishDate = 'September 9, 2021'; +export let heroImage = '/assets/blog/astro-netlify-social.jpg'; +export let lang = 'en'; + +export async function getData() { + return { + title,description,publishDate,heroImage,lang + }; +} + import { Markdown, Prism } from 'astro/components'; import BlogHead from '../../components/BlogHead.astro'; import BlogHeader from '../../components/BlogHeader.astro'; @@ -7,13 +19,8 @@ import BlockQuote from '../../components/BlockQuote.astro'; import GoogleAnalytics from '../../components/GoogleAnalytics.astro'; import Note from '../../components/Note.astro'; import Shell from '../../components/Shell.astro'; -import { mediaQueries } from '../../config.js'; +import { mediaQueries } from '../../config'; -let title = "Netlify Becomes Astro's Official Hosting Partner"; -let description = `We are happy to announce that Netlify has become Astro’s first corporate sponsor and exclusive hosting partner, donating $2,500 each month towards the ongoing open source maintenance and development of Astro.`; -let publishDate = 'September 9, 2021'; -let heroImage = '/assets/blog/astro-netlify-social.jpg'; -let lang = 'en'; ---