{{ $status := .Params.status | default "active" }} {{/* status -> theme-aware bg/text var pair (all defined in main.css) */}} {{ $bgVar := "--type-tech" }}{{ $txtVar := "--type-tech-text" }} {{ if eq $status "maintained" }}{{ $bgVar = "--type-quote" }}{{ $txtVar = "--type-quote-text" }}{{ end }} {{ if eq $status "wip" }}{{ $bgVar = "--type-life" }}{{ $txtVar = "--type-life-text" }}{{ end }} {{ if eq $status "archived" }}{{ $bgVar = "--text-dim" }}{{ $txtVar = "--bg" }}{{ end }} {{ $imageURL := "" }} {{ if .Params.image }} {{ $res := .Resources.GetMatch .Params.image }} {{ if $res }}{{ $imageURL = $res.RelPermalink }}{{ else }}{{ $imageURL = .Params.image }}{{ end }} {{ end }}
{{ if $imageURL }} {{ .Title }} {{ end }}

{{ .Title }}

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

{{ . }}

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