add: first post, external posts, new comps

Add first post for monday, add external posts from other authors, add components for internal and external links
This commit is contained in:
webfussel 2025-07-11 09:13:06 +02:00
parent 427d9ae276
commit 0a481fee5e
19 changed files with 264 additions and 329 deletions

View file

@ -1,6 +1,14 @@
import type { ExternalPost } from '../../shared/types/Blog'
export default defineEventHandler(async () => {
export default defineEventHandler(async (): Promise<ExternalPost[]> => {
// Robert
const webertoireResponse: ExternalPost = await (await fetch('https://robertjanus.de/blog.json')).json()
const webertoireCut = webertoireResponse.posts.slice(0, 3).filter(filterBeforeFirstPost)
return [
{
author: webertoireResponse.author,
posts: webertoireCut,
},
]
})