all repos — searchix @ 05e61978906a08132c4340a5f9ae518134dd0fa9

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: support searching packages

Alan Pearce
commit

05e61978906a08132c4340a5f9ae518134dd0fa9

parent

42611df8133fc88bac5947a65a18fa095d68a951

1 file changed, 26 insertions(+), 0 deletions(-)

changed files
A frontend/templates/blocks/packages.gotmpl
@@ -0,0 +1,26 @@
+{{- define "hits" }} + {{- range . }} + {{- with .Data }} + <details id="{{ .Name }}"> + <summary> + <h3> + {{ .Name }} + </h3> + </summary> + {{ .Description }} + <dl> + {{- with .Version }} + <dt>Version</dt> + <dd>{{ . }}</dd> + {{- end }} + {{- with .Definition }} + <dt>Defined</dt> + <dd> + <a href="{{ . }}">Source</a> + </dd> + {{- end }} + </dl> + </details> + {{- end }} + {{- end }} +{{- end }}