This commit is contained in:
MeowcaTheoRange 2024-04-02 18:29:30 -05:00
parent 6e584f5030
commit 5011ad23f8
3 changed files with 3 additions and 3 deletions

View file

@ -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={[]}

View file

@ -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>
))}

View file

@ -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={[]}