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 => ({
|
return externalBlog.posts.map(post => ({
|
||||||
title: post.title,
|
title: post.title,
|
||||||
description: post.excerpt,
|
description: post.excerpt,
|
||||||
image: 'asdf',
|
image: post['og-image'],
|
||||||
date: post.date,
|
date: post.date,
|
||||||
link: post.url,
|
link: post.url,
|
||||||
category: 'extern',
|
category: 'extern',
|
||||||
author: externalBlog.author,
|
author: externalBlog.author,
|
||||||
}))
|
}))
|
||||||
}))
|
}) ?? [])
|
||||||
|
|
||||||
const allPosts = computed<BlogCard[]>(() => [...(firstTen.value ?? []), ...(externalPosts.value ?? [])].sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime()))
|
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
|
title: string
|
||||||
excerpt: string
|
excerpt: string
|
||||||
date: string
|
date: string
|
||||||
|
'og-image': string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Author = {
|
type Author = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue