add: og image for robert
OG Image for thumbnail for robert in Blog
This commit is contained in:
parent
0a481fee5e
commit
6c68f3afb1
2 changed files with 3 additions and 2 deletions
|
@ -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()))
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ export type Post = {
|
|||
title: string
|
||||
excerpt: string
|
||||
date: string
|
||||
'og-image': string
|
||||
}
|
||||
|
||||
type Author = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue