package components import ( "go.alanpearce.eu/searchix/internal/config" "go.alanpearce.eu/searchix/internal/index" "go.alanpearce.eu/searchix/internal/nix" ) templ Combined(result *index.Result) {
Attribute | Description | if config.DevMode {Score | }
---|---|---|
@openCombinedDialogLink(nix.GetKey(hit.Data)) | switch hit.Data.(type) { case nix.Option: if o := convertMatch[nix.Option](hit.Data); o != nil { @markdown(firstSentence(o.Description)) } case nix.Package: if o := convertMatch[nix.Package](hit.Data); o != nil { { firstSentence(o.Description) } } } | if config.DevMode {@score(hit) | }