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

94 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-01-05 12:35:16 +00:00
export interface BlogPostDetails {
date: string;
// Format: HH:mm
time: string;
2026-01-29 16:42:08 +01:00
// Banner image title. If empty, defaults to banner.webp
banner: string;
bannerAlt: string;
2026-01-29 16:42:08 +01:00
title: string;
2026-01-05 12:35:16 +00:00
/**
* Description to be used in page's metadata.
*/
description: string;
}
export interface BlogPostLink {
key: string;
post: BlogPostDetails;
}
export const posts: BlogPostLink[] = [
2026-01-31 10:24:16 +01:00
// ["2026/0128", {
// date: "2026-01-05",
// time: "13:00",
// banner: "langstone.webp",
// title: "Portsmouth Postmortem",
// description: "",
// }],
2026-02-14 19:52:00 +01:00
{
key: "2026/0214",
post: {
date: "2026-02-14",
time: "19:46",
banner: "logins.webp",
bannerAlt: "A curved stick from a tree with some dry leaves attached. Its form resembles an entity with two legs, a spine, and no arms, leaning over and looking sad.",
title: "SSH Woes",
description: "About how I was shocked to learn that my server was open for attacks for well over a year.",
}
},
2026-02-08 17:45:30 +01:00
{
key: "2026/0208",
post: {
date: "2026-02-08",
time: "17:45",
banner: "sadstick.webp",
bannerAlt: "A curved stick from a tree with some dry leaves attached. Its form resembles an entity with two legs, a spine, and no arms, leaning over and looking sad.",
title: "Am I doing too much?",
description: "I'm trying to pursue too many hobbies all at once and it's a struggle.",
}
},
2026-02-05 22:56:53 +01:00
{
key: "2026/0205",
post: {
date: "2026-02-05",
time: "22:55",
2026-02-10 19:01:00 +01:00
banner: "banner.webp",
bannerAlt: "A Leuchtturm-branded notebook with a copper-coloured cover. An eraser, a pencil sharpener, and a Faber-Castell pencil are lying on top.",
2026-02-05 22:56:53 +01:00
title: "Drawing Challenge",
description: "Challenging myself to draw something every day for 4 weeks.",
}
},
2026-01-31 20:24:26 +01:00
{
key: "2026/0131",
post: {
date: "2026-01-31",
time: "20:24",
banner: "colossus.webp",
bannerAlt: "Colossus standing in the National Museum of Computing in Bletchley, UK",
2026-01-31 20:24:26 +01:00
title: "Lessons Learned",
description: "A small note about how you should always check whether your finished work works as intended.",
2026-01-31 20:24:26 +01:00
}
},
{
key: "2026/0129",
post: {
date: "2026-01-29",
time: "16:42",
banner: "girl.webp",
bannerAlt: "A small drawing of an anime-style girl's head.",
title: "Limitations",
description: "Something about how boundaries can foster creativity.",
}
},
];
2026-01-05 12:35:16 +00:00
// export function getDate(post: BlogPostDetails): string {
// var s = [post.year, post.date.split()].join("");
// s.
// return "";
// }