mirror of
https://github.com/docker/docs.git
synced 2026-10-23 18:09:02 +03:00
Marlin auto-captured installer links without stable labels matching the legacy Segment download events. Add explicit labels to installer buttons and release-note shortcodes, and route WSL users through the Windows installation guide. Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
469 B
HTML
12 lines
469 B
HTML
{{ $text := .Get "text" }}
|
|
{{ $url := .Get "url" }}
|
|
{{ $marlinLabel := .Get "marlin_label" }}
|
|
{{- if (strings.HasPrefix $url "http") -}}
|
|
{{ $url = $url | safeURL }}
|
|
{{- else if (strings.FindRE `([^_]|^)index.md` $url 1) -}}
|
|
{{ $url = ref .Page (strings.Replace $url "index.md" "_index.md") }}
|
|
{{- else -}}
|
|
{{ $url = ref .Page $url }}
|
|
{{- end -}}
|
|
<a class="button not-prose" href="{{ $url }}"{{ with $marlinLabel }} marlin-label="{{ . }}"{{ end }}>{{ $text }}</a>
|