Files
jonbio/app/sitemap.ts
T
trex Bot fd3e983fd0 feat(resume): native /resume page built from JSON Resume data
Replaces the S3 PDF link in the nav with an everforest-native page:
- data/resume.json holds the resume as JSON Resume schema
- app/resume/page.tsx renders it with the site palette (light + dark)
- nav, author card and footer now point at /resume; the PDF stays
  reachable via the page's Download PDF button (siteMetadata.resumePdf)
- /resume added to the sitemap
2026-11-22 23:40:50 -06:00

24 lines
676 B
TypeScript

import { MetadataRoute } from 'next'
import { allBlogs } from 'contentlayer/generated'
import siteMetadata from '@/data/siteMetadata'
export const dynamic = 'force-static'
export default function sitemap(): MetadataRoute.Sitemap {
const siteUrl = siteMetadata.siteUrl
const blogRoutes = allBlogs
.filter((post) => !post.draft)
.map((post) => ({
url: `${siteUrl}/${post.path}`,
lastModified: post.lastmod || post.date,
}))
const routes = ['', 'blog', 'likes', 'projects', 'resume', 'tags'].map((route) => ({
url: `${siteUrl}/${route}`,
lastModified: new Date().toISOString().split('T')[0],
}))
return [...routes, ...blogRoutes]
}