diff --git a/.og/gen/posts-list-mobile.png b/.og/gen/posts-list-mobile.png new file mode 100644 index 0000000..878f6ec Binary files /dev/null and b/.og/gen/posts-list-mobile.png differ diff --git a/.og/gen/posts-list-preview.png b/.og/gen/posts-list-preview.png new file mode 100644 index 0000000..be77957 Binary files /dev/null and b/.og/gen/posts-list-preview.png differ diff --git a/src/components/PostList.astro b/src/components/PostList.astro index 9c14a5c..31e3a8a 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -11,27 +11,34 @@ const shown = limit ? posts.slice(0, limit) : posts; const fmt = (d: Date) => d.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }); + +const og = (post: CollectionEntry<'posts'>) => post.data.ogImage || '/og-default.png'; ---