diff --git a/src/content/about/index.md b/src/content/about/-index.md similarity index 100% rename from src/content/about/index.md rename to src/content/about/-index.md diff --git a/src/content/contact/index.md b/src/content/contact/-index.md similarity index 100% rename from src/content/contact/index.md rename to src/content/contact/-index.md diff --git a/src/content/homepage/index.md b/src/content/homepage/-index.md similarity index 100% rename from src/content/homepage/index.md rename to src/content/homepage/-index.md diff --git a/src/pages/about.astro b/src/pages/about.astro index 826be0e..28f0d7c 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -4,7 +4,7 @@ import { markdownify } from "@/lib/utils/textConverter"; import { Image } from "@astrojs/image/components"; import { getEntryBySlug } from "astro:content"; -const about = await getEntryBySlug("about", "index"); +const about = await getEntryBySlug("about", "-index"); const { Content } = await about.render(); const { title, description, meta_title, image } = about.data; --- diff --git a/src/pages/contact.astro b/src/pages/contact.astro index 27b9711..6eaa757 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -4,7 +4,7 @@ import Base from "@/layouts/Base.astro"; import PageHeader from "@/partials/PageHeader.astro"; import { getEntryBySlug } from "astro:content"; -const contact = await getEntryBySlug("contact", "index"); +const contact = await getEntryBySlug("contact", "-index"); const { contact_form_action }: { contact_form_action: string } = config.params; const { title, description, meta_title, image } = contact.data; --- diff --git a/src/pages/index.astro b/src/pages/index.astro index 4d5b4c6..4bf7422 100755 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -18,7 +18,7 @@ interface Homepage { features: Feature[]; } -const homepage = await getEntryBySlug("homepage", "index"); +const homepage = await getEntryBySlug("homepage", "-index"); const testimonial = await getEntryBySlug("sections", "testimonial"); const call_to_action = await getEntryBySlug("sections", "call-to-action"); const { banner, features }: Homepage = homepage.data;