Files
pages/src/routes/blog/posts.ts

29 lines
549 B
TypeScript
Raw Normal View History

2026-01-05 12:35:16 +00:00
export interface BlogPostDetails {
date: string;
/**
* Short title to be used in URL.
*/
shortTitle: string;
fullTitle: string;
/**
* Description to be used in page's metadata.
*/
description: string;
}
export const posts = new Map<string, BlogPostDetails>([
["2026/0105", {
date: "2026-01-05",
shortTitle: "portsmouth",
fullTitle: "Portsmouth Postmortem",
description: "",
}],
]);
// export function getDate(post: BlogPostDetails): string {
// var s = [post.year, post.date.split()].join("");
// s.
// return "";
// }