@page "/games" @inject GameService Service Games

Games

@foreach (var game in Service.Games) {

@game.Title

@if (!string.IsNullOrEmpty(game.Link) || !string.IsNullOrEmpty(game.Git)) { }
}
@if (_selected is not null) {

@_selected.Title

@((MarkupString)_selected.ContentHtml)
} @code { private GameDoc? _selected; private void ShowDetail(GameDoc game) => _selected = game; private void CloseDetail() => _selected = null; }