diff --git a/src/pages/contact.astro b/src/pages/contact.astro index 676bea2..73f9eab 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -27,17 +27,11 @@ const endpoint = import.meta.env.PUBLIC_CONTACT_FORM_ENDPOINT ?? "";

Contact Info

Phone
{site.phone}

Email
{site.email}

-

- Discovery note: the current WordPress contact page includes placeholder phone and email - values. This rebuild uses the verified homepage/footer contact details. -

Request a consultation

- The form is static-first and posts to the configured endpoint when - PUBLIC_CONTACT_FORM_ENDPOINT is set. Without an endpoint, it opens an email - draft after validating required fields. + Tell us about your project and we will follow up within two business days.

diff --git a/src/pages/insights/[slug].astro b/src/pages/insights/[slug].astro index 41dcd39..5a8dd2d 100644 --- a/src/pages/insights/[slug].astro +++ b/src/pages/insights/[slug].astro @@ -6,7 +6,9 @@ import ContactCta from "@components/ContactCta.astro"; import { breadcrumbSchema, pageSchema } from "@utils/schema"; export async function getStaticPaths() { - const posts = await getCollection("insights"); + // Drafts must never reach the build: an unfiltered getCollection() published + // /insights/example-draft/ AND listed it in the sitemap. Matches rss.xml.ts. + const posts = await getCollection("insights", ({ data }) => !data.draft); return posts.map((post) => ({ params: { slug: post.slug }, props: { post },