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

@@ -0,0 +1,10 @@
@*
Renders an event's date as a <time> element: the start in the machine-readable
datetime attribute, the full German range (weekday, clock time, multi-day span)
as visible text via EventDateFormat.
Unlike <PostDate>, this takes the whole Event, not a plain day: the visible
range depends on the event's end and whether it has a clock time, and that
logic already lives in EventDateFormat.
*@
<time datetime="@Value.Start.ToString("s")">@EventDateFormat.Range(Value)</time>