moved feed post metadata out of individual posts to be more easily accessible
This commit is contained in:
@@ -1,8 +1,78 @@
|
||||
export let entries: string[] = [
|
||||
"electronics/nintendo-repairs",
|
||||
"electronics/trans-phone",
|
||||
export interface FeedEntry {
|
||||
id: string;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
date: string;
|
||||
posted: string;
|
||||
images: FeedImage[];
|
||||
}
|
||||
|
||||
interface FeedImage {
|
||||
src: string;
|
||||
alt: string;
|
||||
}
|
||||
|
||||
export let entries: FeedEntry[] = [
|
||||
{
|
||||
id: "electronics/nintendo-repairs",
|
||||
title: "Nintendo Handheld Repairs",
|
||||
subtitle: "it's been 8 years...",
|
||||
date: "2026-04-16 – 2026-04-23",
|
||||
posted: "2026-04-24",
|
||||
images: [
|
||||
{
|
||||
src: "cardboard.webp",
|
||||
alt: "A Nintendo Switch with its back removed. The SD card reader connector is obstructed by a pink piece of cardboard.",
|
||||
},
|
||||
{
|
||||
src: "knifetoswitch.webp",
|
||||
alt: "The SD card reader connector of a Nintendo Switch currently being stabbed with a knife in an attempt at repair.",
|
||||
},
|
||||
{
|
||||
src: "3dsopen.webp",
|
||||
alt: "A 2011 Nintendo 3DS with its back covers removed on both the top and the bottom half.",
|
||||
},
|
||||
{
|
||||
src: "thread.webp",
|
||||
alt: "The hinge of a 3DS with some ribbon cables halfway pulled through.",
|
||||
},
|
||||
{
|
||||
src: "threadsuccess.webp",
|
||||
alt: "The hinge of a 3DS with three ribbon cables successfully pulled through.",
|
||||
},
|
||||
{
|
||||
src: "3dsfunctional.webp",
|
||||
alt: "A functional 2011 Nintendo 3DS on the home screen, displaying the game 'Zelda: Four Swords Anniversary Edition'",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "electronics/trans-phone",
|
||||
title: "Transparent Phone Back",
|
||||
subtitle: "nowhere to hide!",
|
||||
date: "2026-04-11 – 2026-04-12",
|
||||
posted: "2026-04-12",
|
||||
images: [
|
||||
{
|
||||
src: "scratching.webp",
|
||||
alt: "The back of a Samsung Galaxy S20 FE lying face-down on a deskmat. Toothpicks, cotton pads, and a metal spudger are lying nearby.",
|
||||
},
|
||||
{
|
||||
src: "halfway.webp",
|
||||
alt: "A white phone back that's half-scratched off to reveal the clear plastic.",
|
||||
},
|
||||
{
|
||||
src: "clear.webp",
|
||||
alt: "An entirely clear phone back.",
|
||||
},
|
||||
{
|
||||
src: "final.webp",
|
||||
alt: "A Samsung Galaxy S20 FE with a clear back inside a clear phone case. The phone has a sticker in the middle of the back that shows a lantern with leaves around it.",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export function getLatestFeedItem(): Promise<any> {
|
||||
return import(`./${entries[0]}.md`);
|
||||
export function getLatestPostDate(): string {
|
||||
return entries[0].posted;
|
||||
}
|
||||
Reference in New Issue
Block a user