feat: Improve image rendering, add more branding and SEO

This commit is contained in:
Jesse Wierzbinski 2024-10-19 23:33:46 +02:00
parent 3a0d5822fd
commit d05288ae68
No known key found for this signature in database
15 changed files with 90 additions and 16 deletions

View file

@ -40,7 +40,13 @@ export const getPost = async (path: string): Promise<Post | null> => {
content: renderedBody,
created_at: new Date(Number(header.created_at || 0)).toISOString(),
description: header.description,
image: header.image,
image: {
url: header.image,
width: header.image_width ? Number(header.image_width) : undefined,
height: header.image_height
? Number(header.image_height)
: undefined,
},
title: header.title,
path,
};