58 lines
1.1 KiB
TypeScript
58 lines
1.1 KiB
TypeScript
export interface BlogPostDetails {
|
|
date: string;
|
|
|
|
// Format: HH:mm
|
|
time: string;
|
|
|
|
// Banner image title. If empty, defaults to banner.webp
|
|
banner: string;
|
|
|
|
title: string;
|
|
|
|
/**
|
|
* Description to be used in page's metadata.
|
|
*/
|
|
description: string;
|
|
}
|
|
|
|
export interface BlogPostLink {
|
|
key: string;
|
|
post: BlogPostDetails;
|
|
}
|
|
|
|
|
|
export const posts: BlogPostLink[] = [
|
|
// ["2026/0128", {
|
|
// date: "2026-01-05",
|
|
// time: "13:00",
|
|
// banner: "langstone.webp",
|
|
// title: "Portsmouth Postmortem",
|
|
// description: "",
|
|
// }],
|
|
{
|
|
key: "2026/0131",
|
|
post: {
|
|
date: "2026-01-31",
|
|
time: "20:24",
|
|
banner: "colossus.webp",
|
|
title: "Lessons Learned",
|
|
description: "Colossus standing in the National Museum of Computing in Bletchley, UK.",
|
|
}
|
|
},
|
|
{
|
|
key: "2026/0129",
|
|
post: {
|
|
date: "2026-01-29",
|
|
time: "16:42",
|
|
banner: "girl.webp",
|
|
title: "Limitations",
|
|
description: "Something about how boundaries can foster creativity.",
|
|
}
|
|
},
|
|
];
|
|
|
|
// export function getDate(post: BlogPostDetails): string {
|
|
// var s = [post.year, post.date.split()].join("");
|
|
// s.
|
|
// return "";
|
|
// }
|