0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Testing out Astro.fetchContent('./{**, !index}.astro')

This commit is contained in:
jasikpark 2021-10-26 20:24:19 +00:00
parent 55c8453fd2
commit 6662aaf81f
4 changed files with 18 additions and 8 deletions

View file

@ -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!`;

View file

@ -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!`;

View file

@ -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']);
---
<html lang={ lang ?? 'en' }>
@ -67,6 +69,7 @@ let lang = 'en';
<p>{description}</p>
</section>
<section aria-label="Blog post list">
<!-- {posts.map(post => <BlogPostPreview {post}/>)} -->
<BlogPostPreview title="Astro 0.21 Preview: Vite + WASM = ⚡️" publishDate="October 6, 2021" href="/blog/astro-021-preview">
<span>Get a sneak preview of what's next for Astro, including our new Vite build engine and WASM-powered Go compiler.</span>
</BlogPostPreview>

View file

@ -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 Astros 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 Astros 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';
---
<html lang={ lang ?? 'en' }>