@page "/posts" @{ // Heading and intro come from the "posts" page record; fall back to a sensible // default only if that record is missing, so the page still renders. var title = _page?.Title ?? "Beiträge"; } @title

@title

@if (_page is not null && !string.IsNullOrWhiteSpace(_page.Body)) {
@Body
} @if (_unavailable) {

Die Beiträge sind gerade nicht erreichbar. Bitte später erneut versuchen.

} else if (_posts.Count == 0) {

Zurzeit gibt es keine Beiträge.

} else { @* The newest post (GetPostsAsync sorts newest first) opens the page as a large card across the full width; the rest follow in the grid. *@ }