{{ $status := .Params.status | default "active" }} {{/* status -> theme-aware bg/text var pair (all defined in main.css). active=green, maintained=blue, wip=amber, archived=muted. */}} {{ $bgVar := "--type-quote" }}{{ $txtVar := "--type-quote-text" }} {{ if eq $status "maintained" }}{{ $bgVar = "--type-link" }}{{ $txtVar = "--type-link-text" }}{{ end }} {{ if eq $status "wip" }}{{ $bgVar = "--type-life" }}{{ $txtVar = "--type-life-text" }}{{ end }} {{ if eq $status "archived" }}{{ $bgVar = "--text-dim" }}{{ $txtVar = "--bg" }}{{ end }} {{ $badgeStyle := printf "background-color: var(%s); color: var(%s);" $bgVar $txtVar | safeCSS }} {{/* Full-width banner: page resource named header.* in the project bundle. */}} {{ $headerImg := .Resources.GetMatch "header.*" }}
{{ with $headerImg }} {{ end }}

{{ .Title }}

{{ i18n (printf "status-%s" $status) }}
{{ with .Params.tagline }}

{{ . }}

{{ end }}
{{ with .Params.repo_url }} {{ i18n "viewRepo" }} {{ i18n "opensInNewTab" }} {{ end }} {{ with .Params.tags }} {{ end }}