diff --git a/layouts/_default/cli.html b/layouts/_default/cli.html
index 6d12c2c6d4..fc0b9809e8 100644
--- a/layouts/_default/cli.html
+++ b/layouts/_default/cli.html
@@ -13,18 +13,39 @@
{{ .Scratch.Set "subheadings" slice }}
{{ partial "breadcrumbs.html" . }}
- {{ if ne .LinkTitle .Title }}
- {{/*
- we use linkTitle for surfacing popular aliases like "docker run"
- if linkTitle is set, use both alias and canonical cmd as title
- */}}
-
- {{ else }}
- {{ end }}
- {{ $data.short | .RenderString (dict "display" "block") }}
+
+
+ {{ with $data.short }}
+
+ Description |
+ {{ . }}
+ |
+ {{ end }}
+ {{ with $data.usage }}
+
+ Usage |
+ {{ . }} |
+
+ {{ end }}
+ {{ with $data.aliases }}
+ {{ $aliases := strings.Replace . (fmt.Printf "%s, " page.Title) "" }}
+
+
+ Aliases
+ {{ partial "tooltip.html" "An alias is a short or memorable alternative for a longer command." }}
+ |
+
+
+ {{ range (strings.Split $aliases ", ") }}
+ {{ . }}
+ {{ end }}
+
+ |
+
+ {{ end }}
+
+
{{ .Content }}
{{ if $data.deprecated }}
@@ -60,23 +81,6 @@
This command works with the Swarm orchestrator.
{{ end }}
- {{ with $data.usage }}
- {{ $heading := dict "level" 2 "text" "Usage" }}
- {{ partial "heading.html" $heading }}
- {{ $.Scratch.Add "headings" $heading }}
- {{ highlight (strings.Replace . "\t" "") "console" }}
- {{ end }}
- {{ with $data.aliases }}
- {{ $heading := dict "level" 2 "text" "Aliases" }}
- {{ partial "heading.html" $heading }}
- {{ $aliases := strings.Split . ", " }}
- The following commands are equivalent and redirect here:
-
- {{ range $aliases }}
- {{ . }}
- {{ end }}
-
- {{ end }}
{{ with $data.long }}
{{ $heading := dict "level" 2 "text" "Description" }}
{{ partial "heading.html" $heading }}