refactor: and-then/index.astro -> and-then.astro
- I don't want multiple index.astro
This commit is contained in:
parent
7e7876d52e
commit
0c961ed8a5
1 changed files with 4 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
import Layout from '../../../layouts/Layout.astro'
|
||||
import Footer from '../../../components/Footer.astro'
|
||||
import Posts from '../../../components/Posts.astro'
|
||||
import Layout from '../../layouts/Layout.astro'
|
||||
import Footer from '../../components/Footer.astro'
|
||||
import Posts from '../../components/Posts.astro'
|
||||
import type { AstroInstance } from 'astro'
|
||||
|
||||
// const posts = await Astro.glob('./posts/*.astro')
|
||||
const posts: AstroInstance[] = Object.values<AstroInstance>(
|
||||
import.meta.glob('./posts/*.astro', { eager: true })
|
||||
import.meta.glob('./and-then/posts/*.astro', { eager: true })
|
||||
)
|
||||
const title = 'Previously...'
|
||||
---
|
Loading…
Reference in a new issue