Extract date rendering into per-feature Date components

This commit is contained in:
tleininger committed 2026-09-25 08:49:44 +02:00
1 parent d95bf0dcbe
commit 455b603299
16 files changed
+168 -71

No files matched your search

@@ -1,3 +1,4 @@
@using Elternbeirat.Web.Features.Posts
@if (_latest.Count > 0)
{
<section class="embed embed-posts">
@@ -7,9 +8,7 @@
{
<li>
<a href="@($"/posts/{post.Slug}")">@post.Title</a>
<time datetime="@post.Date.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture)">
@post.Date.ToString("d. MMMM yyyy", Cultures.German)
</time>
<PostDate Value="post.Date" />
</li>
}
</ul>