mirror of
https://github.com/Such-Software/such.software.git
synced 2026-11-18 09:44:00 +01:00
Fix blog post ordering by using ISO dates in frontmatter
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user