renaming
This commit is contained in:
parent
7aa59a9813
commit
5d0d68c1f9
6 changed files with 10 additions and 3 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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 .routers import users, comments
|
||||||
from backend.internal.database import create_db_and_tables
|
from backend.internal.database import create_db_and_tables
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,17 @@ export async function GET(context) {
|
||||||
site: context.site,
|
site: context.site,
|
||||||
items: posts.map(post => ({
|
items: posts.map(post => ({
|
||||||
title: post.frontmatter.title,
|
title: post.frontmatter.title,
|
||||||
subtitle: post.frontmatter.subtitle,
|
|
||||||
pubDate: Date.parse(post.frontmatter.date),
|
pubDate: Date.parse(post.frontmatter.date),
|
||||||
description: post.frontmatter.description,
|
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>`,
|
customData: `<language>de-de</language>`,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue