added thought filtering

This commit is contained in:
2026-11-10 13:51:54 +00:00
parent 952cf9b949
commit ff839c5077

View File

@@ -4,7 +4,8 @@ import { decode } from 'he';
export enum ContentType { export enum ContentType {
YOUTUBE_VIDEO, YOUTUBE_VIDEO,
BLOG_POST BLOG_POST,
THOUGHT
} }
export interface ContentItem { export interface ContentItem {
@@ -61,7 +62,7 @@ async function fetchBlogArticles(fetch: typeof globalThis.fetch, url: string) {
published: new Date(article.pubDate), published: new Date(article.pubDate),
link: article.link, link: article.link,
image: undefined, image: undefined,
type: ContentType.BLOG_POST type: article.title == article.description ? ContentType.THOUGHT : ContentType.BLOG_POST
}); });
} }
return items.slice(0, 5); return items.slice(0, 5);