--- import { Image } from "@astrojs/image/components"; import Base from "@layouts/Base.astro"; import { markdownify } from "@lib/utils/textConverter"; import CallToAction from "@partials/CallToAction.astro"; import Testimonial from "@partials/Testimonial.astro"; import { getEntryBySlug } from "astro:content"; import { FaCheck } from "react-icons/fa/index.js"; 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.data; --- { banner.button.enable && ( {banner.button.label} ) } { banner.image && ( ) } { features.map( ( feature: { button: any; image: string; bulletpoints: any; content: string; title: string; }, index: number ) => ( {feature.bulletpoints.map((bullet: string) => ( {markdownify(bullet)} ))} {feature.button.enable && ( {feature.button.label} )} ) ) }