@page "/overview"
@inject DocsService DocsService
Overview
@if (loading)
{
}
else if (doc == null)
{
Overview Not Found
The overview document could not be found.
}
else
{
@if (!string.IsNullOrEmpty(doc.FrontmatterHtml))
{
Frontmatter
@((MarkupString)doc.FrontmatterHtml)
}
@((MarkupString)doc.HtmlContent)
}
@code {
private NoteDocument? doc;
private bool loading = true;
protected override async Task OnInitializedAsync()
{
doc = await DocsService.GetNoteAsync("overview");
loading = false;
}
}