From 159ba5950036c78c1838cefe09f3bc0b7438213f Mon Sep 17 00:00:00 2001 From: denizk0461 Date: Tue, 31 Mar 2026 12:36:43 +0200 Subject: [PATCH] added tags to blog entries --- src/routes/blog/posts.ts | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/routes/blog/posts.ts b/src/routes/blog/posts.ts index e48e6f3..17e6a76 100644 --- a/src/routes/blog/posts.ts +++ b/src/routes/blog/posts.ts @@ -14,6 +14,8 @@ export interface BlogPostDetails { * Description to be used in page's metadata. */ description: string; + + tags: BlogPostTag[]; } export interface BlogPostLink { @@ -21,6 +23,13 @@ export interface BlogPostLink { post: BlogPostDetails; } +export enum BlogPostTag { + ART, // ramblings to do with art + DRAWING, // self-explanatory + TECH_TIP, // tech guides + META, // about the website itself +} + export const posts: BlogPostLink[] = [ { @@ -32,6 +41,9 @@ export const posts: BlogPostLink[] = [ bannerAlt: "White light blurs on a darker background.", title: "Moving On", description: "It's time to switch domains.", + tags: [ + BlogPostTag.META, + ], } }, { @@ -43,6 +55,9 @@ export const posts: BlogPostLink[] = [ bannerAlt: "A sunset captured from an Autobahn exit.", title: "I made a LIGHTYEARS font", description: "I feel electric and it's only getting brighter!", + tags: [ + + ], } }, { @@ -54,6 +69,9 @@ export const posts: BlogPostLink[] = [ bannerAlt: "A Microsoft Surface Pro 8 displaying a Blue Screen of Death.", title: "How To: Set Up SvelteKit Frontend + PostgreSQL Backend", description: "How to set up a web application with a backend on a remote server without getting error 403.", + tags: [ + BlogPostTag.TECH_TIP, + ], } }, { @@ -62,9 +80,13 @@ export const posts: BlogPostLink[] = [ 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.", + bannerAlt: "A screenshot of a terminal emulator logged onto a remote server displaying log messages. The messages all display different IP addresses unsuccessfully attempting to log in with different usernames. There are over a dozen requests within a single minute on February 14, 2026.", title: "SSH Woes", description: "About how I was shocked to learn that my server was open for attacks for well over a year.", + tags: [ + BlogPostTag.META, + BlogPostTag.TECH_TIP, + ], } }, { @@ -76,6 +98,9 @@ export const posts: BlogPostLink[] = [ 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.", + tags: [ + BlogPostTag.ART, + ], } }, { @@ -87,6 +112,10 @@ export const posts: BlogPostLink[] = [ bannerAlt: "A Leuchtturm-branded notebook with a copper-coloured cover. An eraser, a pencil sharpener, and a Faber-Castell pencil are lying on top.", title: "Drawing Challenge", description: "Challenging myself to draw something every day for 4 weeks.", + tags: [ + BlogPostTag.ART, + BlogPostTag.DRAWING, + ], } }, { @@ -98,6 +127,9 @@ export const posts: BlogPostLink[] = [ bannerAlt: "Colossus standing in the National Museum of Computing in Bletchley, UK", title: "Lessons Learned", description: "A small note about how you should always check whether your finished work works as intended.", + tags: [ + BlogPostTag.META, + ], } }, { @@ -109,6 +141,10 @@ export const posts: BlogPostLink[] = [ bannerAlt: "A small drawing of an anime-style girl's head.", title: "Limitations", description: "Something about how boundaries can foster creativity.", + tags: [ + BlogPostTag.ART, + BlogPostTag.DRAWING, + ], } }, ]; \ No newline at end of file