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

@title

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

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

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

Zurzeit gibt es keine Fragen.

} else { @foreach (var topic in _topics) {
@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))
}
} }