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:
parent
427d9ae276
commit
0a481fee5e
19 changed files with 264 additions and 329 deletions
|
@ -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,
|
||||
},
|
||||
]
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue