add: og image for robert

OG Image for thumbnail for robert in Blog
This commit is contained in:
webfussel 2025-07-11 11:13:37 +02:00
parent 0a481fee5e
commit 6c68f3afb1
2 changed files with 3 additions and 2 deletions

View file

@ -65,13 +65,13 @@ const externalPosts = computed<BlogCard[]>(() => externalPostsRaw.value?.flatMap
return externalBlog.posts.map(post => ({
title: post.title,
description: post.excerpt,
image: 'asdf',
image: post['og-image'],
date: post.date,
link: post.url,
category: 'extern',
author: externalBlog.author,
}))
}))
}) ?? [])
const allPosts = computed<BlogCard[]>(() => [...(firstTen.value ?? []), ...(externalPosts.value ?? [])].sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime()))

View file

@ -3,6 +3,7 @@ export type Post = {
title: string
excerpt: string
date: string
'og-image': string
}
type Author = {