@page "/gear"
@inject DocsService DocsService
Gear & Equipment
@if (gearNotes == null)
{
}
else
{
@((context as NoteInfo)!.Title)
}
@code {
private List? gearNotes;
protected override async Task OnInitializedAsync()
{
var index = await DocsService.GetIndexAsync();
gearNotes = index.Notes
.Where(n => string.Equals(n.Category, "Gear", StringComparison.OrdinalIgnoreCase))
.OrderBy(n => n.Title)
.ToList();
}
}