{{- /* Theme-aware image pair: renders the light or dark variant following the site's theme. Hextra stamps the `light`/`dark` class on (from the navbar toggle, with the system preference as the default), so gating on the class tracks the user's effective choice - a plain with a prefers-color-scheme media query would ignore the manual toggle. The console walkthrough test (openrun repo, ui/console_tests `make todoflow`) generates matching NN-name-light.png / NN-name-dark.png pairs. The caption is shown below the image; it falls back to the alt text when not set. Keep alt as the full description for screen readers. Usage: {{< theme-image light="/images/console/01-service-form-light.png" dark="/images/console/01-service-form-dark.png" alt="New service form with the connection url stored as a secret" caption="New service form" >}} */ -}} {{- $alt := .Get "alt" -}}
{{ $alt }} {{ $alt }} {{- with (.Get "caption" | default $alt) }}
{{ . }}
{{- end }}