German date format
All checks were successful
Deploy Stable Website / Build and Deploy (push) Successful in 52s
All checks were successful
Deploy Stable Website / Build and Deploy (push) Successful in 52s
This commit is contained in:
@@ -18,7 +18,7 @@ const { Content } = await render(entry);
|
||||
<div class="glass-container header" style={`view-transition-name: blog-header-${entry.id};`}>
|
||||
<h1 style={`view-transition-name: blog-headline-${entry.id};`}>{entry.data.title}</h1>
|
||||
<div class="meta">
|
||||
<time style={`view-transition-name: blog-pubdate-${entry.id};`}>{entry.data.pubDate.toLocaleDateString()}</time>
|
||||
<time style={`view-transition-name: blog-pubdate-${entry.id};`}>{entry.data.pubDate.toLocaleDateString("de-DE")}</time>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ posts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
|
||||
{posts.map(post => (
|
||||
<a href={`/blog/${post.id}`} class="glass-container link-card" style={`view-transition-name: blog-header-${post.id};`}>
|
||||
<h2 style={`view-transition-name: blog-headline-${post.id};`}>{post.data.title}</h2>
|
||||
<time class="date" style={`view-transition-name: blog-pubdate-${post.id};`}>{post.data.pubDate.toLocaleDateString()}</time>
|
||||
<time class="date" style={`view-transition-name: blog-pubdate-${post.id};`}>{post.data.pubDate.toLocaleDateString("de-DE")}</time>
|
||||
<p>{post.data.summary}</p>
|
||||
</a>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user