From ff839c50777017219f0e4c1e7d78128a9ae8a06a Mon Sep 17 00:00:00 2001 From: voidarc Date: Tue, 10 Nov 2026 13:51:54 +0000 Subject: [PATCH] added thought filtering --- src/lib/server/content.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/server/content.ts b/src/lib/server/content.ts index 05fdb34..601c45d 100644 --- a/src/lib/server/content.ts +++ b/src/lib/server/content.ts @@ -4,7 +4,8 @@ import { decode } from 'he'; export enum ContentType { YOUTUBE_VIDEO, - BLOG_POST + BLOG_POST, + THOUGHT } export interface ContentItem { @@ -61,7 +62,7 @@ async function fetchBlogArticles(fetch: typeof globalThis.fetch, url: string) { published: new Date(article.pubDate), link: article.link, image: undefined, - type: ContentType.BLOG_POST + type: article.title == article.description ? ContentType.THOUGHT : ContentType.BLOG_POST }); } return items.slice(0, 5);