@page "/faqs/{Slug}"
@if (_unavailable)
{
Vorübergehend nicht erreichbar
Das Thema ist gerade nicht erreichbar. Bitte später erneut versuchen.
}
else if (_topic is not null)
{
@_topic.Title
@_topic.Title
@if (!string.IsNullOrWhiteSpace(_topic.Intro))
{
@((MarkupString)Markdown.ToHtml(_topic.Intro))
}
@foreach (var faq in _topic.Faqs)
{
@faq.Question
@((MarkupString)Markdown.ToHtml(faq.Answer))
}
}
@* No topic and not unavailable: the slug was unknown; NavigationManager.NotFound()
already ran in OnParametersSetAsync and renders the not-found page. *@