website can get pubDate from filename instead of frontmatter
This commit is contained in:
@@ -53,6 +53,11 @@ const Content = post.filePath?.endsWith('.gmi')
|
||||
: (await render(post)).Content;
|
||||
---
|
||||
|
||||
<BlogPost {...post.data}>
|
||||
<BlogPost
|
||||
title={post.data.title}
|
||||
description={post.data.description}
|
||||
pubDate={post.data.pubDate ?? new Date(post.id)}
|
||||
updatedDate={post.data.updatedDate}
|
||||
>
|
||||
{ post.filePath?.endsWith('.gmi') ? <Fragment set:html={Content}></Fragment> : <Content />}
|
||||
</BlogPost>
|
||||
|
||||
Reference in New Issue
Block a user