From 0c961ed8a58116d55b8a4b31d08081a3b4e1d9f7 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Fri, 6 Jun 2025 22:11:06 +0200 Subject: [PATCH] refactor: and-then/index.astro -> and-then.astro - I don't want multiple index.astro --- src/pages/now/{and-then/index.astro => and-then.astro} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/pages/now/{and-then/index.astro => and-then.astro} (84%) diff --git a/src/pages/now/and-then/index.astro b/src/pages/now/and-then.astro similarity index 84% rename from src/pages/now/and-then/index.astro rename to src/pages/now/and-then.astro index b4ad12e..c6f4e50 100644 --- a/src/pages/now/and-then/index.astro +++ b/src/pages/now/and-then.astro @@ -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( - import.meta.glob('./posts/*.astro', { eager: true }) + import.meta.glob('./and-then/posts/*.astro', { eager: true }) ) const title = 'Previously...' ---