mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 02:31:31 +08:00
feat: personalize blog and update configurations
This commit is contained in:
@ -18,6 +18,7 @@ const {
|
||||
description,
|
||||
date_modified: updatedDate,
|
||||
date: publishDate,
|
||||
tags,
|
||||
} = post.data;
|
||||
const socialImage = ogImage ?? `/og-image/${post.id}.png`;
|
||||
const articleDate = updatedDate?.toISOString() ?? publishDate.toISOString();
|
||||
@ -28,9 +29,10 @@ const readingTime: string = remarkPluginFrontmatter.readingTime;
|
||||
<BaseLayout
|
||||
meta={{
|
||||
articleDate,
|
||||
description,
|
||||
description: description ?? "",
|
||||
ogImage: socialImage,
|
||||
title,
|
||||
tags: tags.join(", "),
|
||||
}}
|
||||
>
|
||||
<article class="grow break-words" data-pagefind-body>
|
||||
|
Reference in New Issue
Block a user