This commit is contained in:
Daniel Ledda
2026-01-18 22:22:01 +01:00
parent d93e2f8928
commit ba9bcbaa08

View File

@@ -35,6 +35,7 @@ async function getBlogEntries() {
title: '', title: '',
createdAt: '', createdAt: '',
updatedAt: '', updatedAt: '',
teaser: `${ dom.querySelector('article').textContent.slice(0, 128) }...`,
}; };
const metaTags = dom.querySelectorAll('meta') as unknown as NodeListOf<HTMLMetaElement>; const metaTags = dom.querySelectorAll('meta') as unknown as NodeListOf<HTMLMetaElement>;
for (const metaTag of metaTags) { for (const metaTag of metaTags) {
@@ -69,7 +70,7 @@ async function rss() {
<title>djledda's blog</title> <title>djledda's blog</title>
<description>djledda's personal blog</description> <description>djledda's personal blog</description>
<link>${ HOST }/blog</link> <link>${ HOST }/blog</link>
<managingEditor>dan@djledda.net (Daniel Ledda)</managingEditor> <managingEditor>Daniel Ledda</managingEditor>
<image> <image>
<title>djledda's blog</title> <title>djledda's blog</title>
<url>${ HOST }/favicon.png</url> <url>${ HOST }/favicon.png</url>
@@ -86,7 +87,8 @@ async function rss() {
<title>${ article.title }</title> <title>${ article.title }</title>
<link>${ HOST }/blog/${ article.slug }</link> <link>${ HOST }/blog/${ article.slug }</link>
<pubDate>${ new Date(article.createdAt).toUTCString() }</pubDate> <pubDate>${ new Date(article.createdAt).toUTCString() }</pubDate>
<author>dan@djledda.net (Daniel Ledda)</author> <author>Daniel Ledda</author>
<description>${ article.content }</description>
<guid>${ article.guid }</guid> <guid>${ article.guid }</guid>
</item> </item>
`).join('')} `).join('')}