mirror of
https://github.com/versia-pub/blog.git
synced 2026-03-13 01:29:15 +01:00
feat: ✨ Improve image rendering, add more branding and SEO
This commit is contained in:
parent
3a0d5822fd
commit
d05288ae68
15 changed files with 90 additions and 16 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue