From 76573dc37869923e01f4e11b53176c21de8b5fed Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sun, 18 Jan 2026 22:25:19 +0100 Subject: [PATCH] update --- app/api.ts | 2 ++ main.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/api.ts b/app/api.ts index b5f52d0..144e6ee 100644 --- a/app/api.ts +++ b/app/api.ts @@ -9,6 +9,8 @@ type BlogEntry = { createdAt: string, updatedAt: string, tags?: string[], + guid: string, + teaser: string, }; type RPArticle = { diff --git a/main.ts b/main.ts index c3a3916..f2291ea 100644 --- a/main.ts +++ b/main.ts @@ -35,7 +35,7 @@ async function getBlogEntries() { title: '', createdAt: '', updatedAt: '', - teaser: `${ dom.querySelector('article').textContent.slice(0, 128) }...`, + teaser: `${ dom.querySelector('article')?.textContent.slice(0, 256).trimStart().trimEnd() }...`, }; const metaTags = dom.querySelectorAll('meta') as unknown as NodeListOf; for (const metaTag of metaTags) { @@ -88,7 +88,7 @@ async function rss() { ${ HOST }/blog/${ article.slug } ${ new Date(article.createdAt).toUTCString() } Daniel Ledda - ${ article.content } + ${ article.teaser } ${ article.guid } `).join('')}