26 lines
805 B
Plaintext
26 lines
805 B
Plaintext
@page "/posts/{Slug}"
|
|
|
|
@if (_unavailable)
|
|
{
|
|
<PageTitle>Vorübergehend nicht erreichbar</PageTitle>
|
|
<p>Der Beitrag ist gerade nicht erreichbar. Bitte später erneut versuchen.</p>
|
|
}
|
|
else if (_post is not null)
|
|
{
|
|
<PageTitle>@_post.Title</PageTitle>
|
|
<nav>
|
|
<a href="/posts">← Alle Beiträge</a>
|
|
</nav>
|
|
<article>
|
|
<header>
|
|
<h1>@_post.Title</h1>
|
|
<time class="post-meta" datetime="@_post.Date.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture)">
|
|
@_post.Date.ToString("d. MMMM yyyy", Cultures.German)
|
|
</time>
|
|
</header>
|
|
@Body
|
|
</article>
|
|
}
|
|
@* No post and not unavailable: the slug was unknown; NavigationManager.NotFound()
|
|
already ran in OnParametersSetAsync and renders the not-found page. *@
|