mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-25 03:31:29 +08:00
feat: new blog layout and props
This commit is contained in:
@ -12,7 +12,13 @@ interface Props {
|
||||
}
|
||||
|
||||
const { post } = Astro.props;
|
||||
const { ogImage, title, description, updatedDate, publishDate } = post.data;
|
||||
const {
|
||||
banner: ogImage,
|
||||
title,
|
||||
description,
|
||||
date_modified: updatedDate,
|
||||
date: publishDate,
|
||||
} = post.data;
|
||||
const socialImage = ogImage ?? `/og-image/${post.id}.png`;
|
||||
const articleDate = updatedDate?.toISOString() ?? publishDate.toISOString();
|
||||
const { headings, remarkPluginFrontmatter } = await render(post);
|
||||
|
Reference in New Issue
Block a user