--- import MainHead from '../components/MainHead.astro'; import Footer from '../components/Footer.svelte'; import Nav from '../components/Nav.svelte'; import PortfolioPreview from '../components/PortfolioPreview.svelte'; interface MarkdownFrontmatter { publishDate: number; } const projects = Astro.fetchContent('./project/**/*.md') .filter(({ publishDate }) => !!publishDate) .sort((a, b) => new Date(b.publishDate).valueOf() - new Date(a.publishDate).valueOf()); ---