This commit is contained in:
2026-06-10 21:46:16 -04:00
parent 6bf1b87207
commit 654ce3e9b0
4 changed files with 47 additions and 39 deletions
+1 -32
View File
@@ -1,38 +1,7 @@
@page "/docs"
@inject Web.Services.DocsService DocsService
<PageTitle>Docs</PageTitle>
<h1>Documentation</h1>
@if (notes == null)
{
<p>Loading...</p>
}
else
{
<div class="docs-grid">
@foreach (var note in notes.OrderBy(n => n.Title))
{
<a href="/docs/@note.Slug" class="docs-card">
<h3>
@note.Title
@if (!string.IsNullOrEmpty(note.Category))
{
<span class="category-badge">@note.Category</span>
}
</h3>
</a>
}
</div>
}
@code {
private List<Web.Models.NoteInfo>? notes;
protected override async Task OnInitializedAsync()
{
var index = await DocsService.GetIndexAsync();
notes = index.Notes;
}
}
<p>Select a note from the sidebar to view its contents.</p>