mirror of
https://github.com/docker/docs.git
synced 2026-10-23 18:09:02 +03:00
The API reference banner kept its light background when links switched to light colors in dark mode. Add dark background, border, and text colors matching the note callout palette.
14 lines
518 B
HTML
14 lines
518 B
HTML
{{ if ne .Params.apiReferenceBanner false }}
|
|
{{ $data := index hugo.Data "api-reference" }}
|
|
{{ range $data.apis }}
|
|
{{ $manual := site.GetPage .manual }}
|
|
{{ if and $manual (eq $manual.RelPermalink $.RelPermalink) }}
|
|
<p
|
|
class="my-4 rounded border border-blue-200 bg-blue-50 p-4 text-sm text-blue-900 dark:border-blue-600 dark:bg-blue-950 dark:text-blue-100"
|
|
>
|
|
<a href="{{ .url }}">Explore the {{ .title }} API {{ .version }} →</a>
|
|
</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|