--- import type { CollectionEntry } from 'astro:content'; type Sketchnotes = CollectionEntry<'sketchnotes'>; import { getCollection } from 'astro:content'; import { sortBySortKey } from '../utils'; import GridLayout from '../layouts/GridLayout.astro'; import Image from '../components/Image.astro'; import Link from '../components/Link.astro'; import PageTitle from '../components/PageTitle.astro'; import { Content as Intro } from '../text/sketchnotes/intro.mdx'; import { mapping } from '../mdx-components'; const allSketchnotes: Sketchnotes[] = await getCollection('sketchnotes'); allSketchnotes.sort(sortBySortKey); const title = 'Sketchnotes'; const description = 'This is a collection of Sketchnotes I’ve drawn.'; --- Sketchnotes