1
0
mirror of https://github.com/docker/docs.git synced 2026-10-23 18:09:02 +03:00
Files
docs/layouts/_shortcodes/button.html
David Karlsson 192303efc4 docs: label Desktop installer downloads for Marlin
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>
2026-09-04 11:50:44 +00:00

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>