--- 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<'work'>; } // This is a dynamic route that generates a page for every Markdown file in src/content/ // Read more about dynamic routes and this `getStaticPaths` function in the Astro docs: // https://docs.astro.build/en/core-concepts/routing/#dynamic-routes export async function getStaticPaths() { const work = await getCollection('work'); return work.map((entry) => ({ params: { slug: entry.slug }, props: { entry }, })); } const { entry } = Astro.props; const { Content } = await entry.render(); ---
Work
{entry.data.tags.map((t) => {t})}

{entry.data.description}

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