Fix blog post ordering by using ISO dates in frontmatter

This commit is contained in:
jwinterm
2026-03-10 10:54:00 -04:00
parent 2b9b1bf429
commit cfc5c7265b
7 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export default async function BlogPost({ params }: Props) {
<div className="glass-card mt-6">
<header className="mb-8 pb-6 border-b border-border">
<time className="text-sm text-muted-foreground">{post.date}</time>
<time className="text-sm text-muted-foreground">{post.dateDisplay}</time>
<h1 className="text-3xl md:text-4xl font-bold mt-2">{post.title}</h1>
{post.excerpt && (
<p className="text-muted-foreground mt-3">{post.excerpt}</p>
+1 -1
View File
@@ -46,7 +46,7 @@ export default function BlogPage() {
{posts.map((post) => (
<Link key={post.slug} href={`/blog/${post.slug}`}>
<Card className="glass-card hover:border-primary/30 transition-colors cursor-pointer">
<time className="text-sm text-muted-foreground">{post.date}</time>
<time className="text-sm text-muted-foreground">{post.dateDisplay}</time>
<h2 className="text-2xl font-bold mt-1 mb-2">{post.title}</h2>
<p className="text-muted-foreground">{post.excerpt}</p>
</Card>