Date
This commit is contained in:
parent
6e584f5030
commit
5011ad23f8
3 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ export default async function Home({
|
|||
margin: "16px 0"
|
||||
}}>
|
||||
<h2><Link href={`/blog/${post.slug}`}>{post.title}</Link></h2>
|
||||
<p><small>Posted {new Date(post.created).toLocaleString()} - {post.views} views</small></p>
|
||||
<p><small>Posted {new Date(post.created).toLocaleDateString()} - {post.views} views</small></p>
|
||||
<Markdown
|
||||
rehypePlugins={[rehypeRaw]}
|
||||
allowedElements={[]}
|
||||
|
|
|
@ -34,7 +34,7 @@ export default async function Home({
|
|||
backgroundImage: `linear-gradient(180deg, #000c 0%, #000c 50%, #0004 100%), url(${post.images?.[0]})`,
|
||||
}} className={styles.ImageContainer}>
|
||||
<h2>{post.title}</h2>
|
||||
<p>Posted {new Date(post.created).toLocaleString()}</p>
|
||||
<p>Posted {new Date(post.created).toLocaleDateString()}</p>
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
|
|
|
@ -29,7 +29,7 @@ export default async function Home({
|
|||
margin: "16px 0"
|
||||
}}>
|
||||
<h2><Link href={`/stories/${post.slug}`}>{post.title}</Link></h2>
|
||||
<p><small>Posted {new Date(post.created).toLocaleString()} - {post.views} views</small></p>
|
||||
<p><small>Posted {new Date(post.created).toLocaleDateString()} - {post.views} views</small></p>
|
||||
<Markdown
|
||||
rehypePlugins={[rehypeRaw]}
|
||||
allowedElements={[]}
|
||||
|
|
Loading…
Reference in a new issue