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