mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
24 lines
654 B
HTML
24 lines
654 B
HTML
{{- /*
|
|
List of languages (taxonomy) chips with images
|
|
Context: page.Pages
|
|
*/
|
|
-}}
|
|
{{- range . -}}
|
|
{{- if eq .File nil }}
|
|
{{- errorf "[languages] Undefined language: '%s' in %s" (urlize (strings.ToLower .Title)) page.File.Filename }}
|
|
{{- end }}
|
|
{{- if not .Page.Params.icon }}
|
|
{{- errorf "[languages] language is missing an icon: '%s' in %s" (urlize (strings.ToLower .Title)) page.File.Filename }}
|
|
{{- end }}
|
|
<span class="chip">
|
|
<img
|
|
class="py-1"
|
|
height="18"
|
|
width="18"
|
|
title="{{ .Page.LinkTitle }}"
|
|
src="{{ .Page.Params.icon }}"
|
|
/>
|
|
<span>{{ .Page.LinkTitle }}</span>
|
|
</span>
|
|
{{- end -}}
|