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);