--- import ImageMod from "@/components/ImageMod.astro"; import Base from "@/layouts/Base.astro"; import { getListPage, getSinglePage } from "@/lib/contentParser.astro"; import { supportedLang } from "@/lib/utils/languageParser"; import { markdownify } from "@/lib/utils/textConverter"; import CallToAction from "@/partials/CallToAction.astro"; import Testimonial from "@/partials/Testimonial.astro"; import type { Feature } from "@/types"; import type { ContentEntryMap } from "astro:content"; import { FaCheck } from "react-icons/fa"; export function getStaticPaths() { const paths = supportedLang.map((lang) => ({ params: { lang: lang || undefined }, })); return paths; } const { lang } = Astro.params; const homepage = await getListPage("homepage", lang as keyof ContentEntryMap); const { banner, features } = homepage[0].data; const testimonial = await getSinglePage( "sections", lang as keyof ContentEntryMap, "testimonial" ); const call_to_action = await getSinglePage( "sections", lang as keyof ContentEntryMap, "call-to-action" ); --- { banner.button.enable && ( {banner.button.label} ) } { banner.image && ( ) } { features.map((feature: Feature, index: number) => ( {feature.bulletpoints.map((bullet: string) => ( ))} {feature.button.enable && ( {feature.button.label} )} )) }