This commit is contained in:
ebby 2026-09-26 22:14:22 +02:00
parent 7aa59a9813
commit 5d0d68c1f9
6 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,4 @@
from backend.internal.xml_reader import check_blog_rss_and_send_admin_mail
from backend.internal.rss_reader import check_blog_rss_and_send_admin_mail
from .routers import users, comments
from backend.internal.database import create_db_and_tables
from fastapi import APIRouter

View file

@ -12,10 +12,17 @@ export async function GET(context) {
site: context.site,
items: posts.map(post => ({
title: post.frontmatter.title,
subtitle: post.frontmatter.subtitle,
pubDate: Date.parse(post.frontmatter.date),
description: post.frontmatter.description,
link: `/blog/${post.frontmatter.slug}`
link: `/blog/${post.frontmatter.slug}`,
customData: `
<subtitle>
<![CDATA[${post.frontmatter.subtitle ?? ''}]]>
</subtitle>
`,
})),
customData: `<language>de-de</language>`,
});