--- import { type CollectionEntry, getCollection } from 'astro:content'; import BaseLayout from '../../layouts/BaseLayout.astro'; import ContactCTA from '../../components/ContactCTA.astro'; import Hero from '../../components/Hero.astro'; import Icon from '../../components/Icon.astro'; import Pill from '../../components/Pill.astro'; interface Props { entry: CollectionEntry<'projects'>; } export async function getStaticPaths() { const projects = await getCollection('projects'); return projects.map((entry) => ({ params: { slug: entry.slug }, props: { entry }, })); } const { entry } = Astro.props; const { Content } = await entry.render(); ---
Projects
{entry.data.tags.map((t) => {t})}

{entry.data.description}

{entry.data.img && {entry.data.img_alt}