package components import ( "go.alanpearce.eu/searchix/internal/index" "go.alanpearce.eu/searchix/internal/nix" ) templ Options(result *index.Result) { for _, hit := range result.Hits { if m := convertMatch[nix.Option](hit.Data); m != nil { @optionRow(*m) } }
Title Description
} templ optionRow(o nix.Option) { @openDialogLink(o.Name) @markdown(firstSentence(o.Description)) }