diff options
Diffstat (limited to 'frontend/templates/blocks')
-rw-r--r-- | frontend/templates/blocks/packages.gotmpl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/frontend/templates/blocks/packages.gotmpl b/frontend/templates/blocks/packages.gotmpl new file mode 100644 index 0000000..68f9246 --- /dev/null +++ b/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 }} |