{{ $p := .page }} {{ $reverse := eq (mod .index 2) 1 }} {{ $status := $p.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 }} {{/* Row thumbnail (2:3): page resource named thumbnail.* in the project bundle; fall back to an `image` param, else a mono-glyph block. */}} {{ $imageURL := "" }} {{ $thumb := $p.Resources.GetMatch "thumbnail.*" }} {{ if $thumb }} {{ $imageURL = $thumb.RelPermalink }} {{ else if $p.Params.image }} {{ $res := $p.Resources.GetMatch $p.Params.image }} {{ if $res }}{{ $imageURL = $res.RelPermalink }}{{ else }}{{ $imageURL = $p.Params.image }}{{ end }} {{ end }} {{ $glyph := substr (upper $p.Title) 0 2 }}

{{ $p.Title }}

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

{{ . }}

{{ end }} {{ with $p.Params.tags }} {{ end }}