29 lines
549 B
TypeScript
29 lines
549 B
TypeScript
|
|
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 "";
|
||
|
|
// }
|