| 1 | import { ogCard, plural } from "@/lib/og"; |
| 2 | |
| 3 | import { CHANGELOG, DESCRIPTION, formatDate } from "./entries"; |
| 4 | |
| 5 | export { size, contentType } from "@/lib/og"; |
| 6 | export const alt = "Ghost changelog"; |
| 7 | |
| 8 | export default function Image() { |
| 9 | return ogCard({ |
| 10 | eyebrow: "Changelog", |
| 11 | icon: "ghost", |
| 12 | title: "What's new in Ghost", |
| 13 | description: DESCRIPTION, |
| 14 | stats: [ |
| 15 | { icon: "clock", label: `Updated ${formatDate(CHANGELOG[0].date)}` }, |
| 16 | { |
| 17 | icon: "gitCommitHorizontal", |
| 18 | label: plural(CHANGELOG.length, "change"), |
| 19 | }, |
| 20 | ], |
| 21 | }); |
| 22 | } |