--- import type { CollectionEntry } from 'astro:content'; type Projects = CollectionEntry<'projects'>; import { getCollection } from 'astro:content'; import { sortBySortKey } from '../utils'; import GridLayout from '../layouts/GridLayout.astro'; import PageTitle from '../components/PageTitle.astro'; import ProjectContainer from '../components/ProjectContainer.astro'; import { Content as Intro } from '../text/projects/intro.mdx'; import { mapping } from '../mdx-components'; const allProjects: Projects[] = await getCollection('projects'); allProjects.sort(sortBySortKey).reverse(); const title = 'Projects'; const description = 'I’m a Frontend Developer by profession. I worked in Design, Editing, and 3D Animation. These are projects I created over the last years.'; --- Projects
{allProjects.map((project) => )}