{{ define "main" }}

{{ .Title }}

{{ .Params.summary }}

{{/* Tier + convention badges, mirroring the directory card for consistency. */}}
Classification
{{ if eq .Params.tier "community" }} community {{ else }} {{ .Params.tier }} {{ end }} {{ if .Params.convention_major }} {{ partial "convention-pill.html" (dict "major" .Params.convention_major "version" .Params.convention_version) }} {{ end }}
{{ with .Params.license }}
License
{{ . }}
{{ end }} {{ with .Params.authors }}
Authors
{{ delimit . ", " }}
{{ end }} {{ with .Params.maintainers }}
Maintainers
{{ delimit . ", " }}
{{ end }} {{ with .Params.version }}
Version
{{ . }} @ {{ substr $.Params.sha 0 7 }}
{{ else }}
Version
tracking {{ .Params.ref }} @ {{ substr .Params.sha 0 7 }}
{{ end }}
Repository
{{ .Params.repo }}
{{/* Pre-sanitised HTML from the ingest. The .readme wrapper is cosmetic containment only (clamp image width, wrap long code). */}}
{{ .Content }}
{{ with .Params.contributors }}

Contributors

{{ end }} {{ with .Params.pathvars }}

Paths

{{ range $group, $vars := . }}

{{ $group }}

{{ range $name, $v := $vars }}
{{ $name }}
{{ $v.default_html | safeHTML }} {{ with $v.description }}{{ . }}{{ end }}
{{ end }}
{{ end }}
{{ end }} {{ with .Params.wildcards }}

Wildcards

{{ range $name, $desc := . }}
{{ $name }}
{{ $desc }}
{{ end }}
{{ end }}
{{ end }}