diff --git a/content/contribute/components/links.md b/content/contribute/components/links.md index 97f47fbd4fc9..d5fed2fd4a2c 100644 --- a/content/contribute/components/links.md +++ b/content/contribute/components/links.md @@ -6,18 +6,17 @@ toc_max: 3 ## Examples -- [External links](https://docker.com) open in a new tab -- [Internal links](links.md) open in the same tab +[External links](https://docker.com) and [internal links](links.md) both +open in the same tab. -You can use relative links, using source filenames, -or you can use absolute links for pages as they appear on the final site. +Use relative links, using source filenames. #### Links to auto-generated content -When you link to heading IDs in auto-generated pages, such as CLI reference content, -you won't get any help from your editor in resolving the anchor names. That's -because the pages are generated at build-time and your editor or LSP doesn't know -about them in advance. +When you link to heading IDs in auto-generated pages, such as CLI +reference content, you won't get any help from your editor in resolving the +anchor names. That's because the pages are generated at build-time and your +editor or LSP doesn't know about them in advance. ## Syntax diff --git a/hugo_stats.json b/hugo_stats.json index eb013ca65696..d016a8f994ba 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -2,7 +2,6 @@ "htmlElements": { "tags": null, "classes": [ - "!mt-0", "--mount", "--tmpfs", "-mr-8", @@ -33,13 +32,15 @@ "Command-Prompt-CLI", "Compliant", "Custom-builder", + "DNS-resolution", "Debian", "Debian-GNU/Linux", "Diff", "Docker-Desktop", + "Docker-Engine", "Docker-Hub", "Docker-Scout-Dashboard", - "Docker-plan", + "Docker-subscription", "Download", "Entra-ID", "Entra-ID-SAML-2.0", @@ -47,6 +48,8 @@ "Fedora", "For-Mac-with-Apple-silicon", "For-Mac-with-Intel-chip", + "From-Docker-Desktop", + "From-the-Docker-CLI", "From-the-GUI", "From-the-command-line", "GUI", @@ -65,8 +68,8 @@ "JavaScript", "Jenkins", "Latest", - "Legacy-Docker-plan", "Legacy-Docker-plans", + "Legacy-Docker-subscription", "Linux", "Local-or-Hub-storage", "MDM", @@ -80,6 +83,7 @@ "Mac-with-Intel-chip", "Manually-create-assets", "NetworkManager", + "Networking-mode", "Node", "Non-compliant", "Okta", @@ -146,8 +150,8 @@ "bg-amber-500", "bg-background-light", "bg-background-toc", + "bg-black/100", "bg-black/50", - "bg-black/70", "bg-blue", "bg-blue-400", "bg-blue-500", @@ -445,7 +449,6 @@ "overflow-x-auto", "overflow-x-hidden", "overflow-y-auto", - "p-1", "p-2", "p-3", "p-4", @@ -459,7 +462,6 @@ "pb-20", "pb-4", "pb-8", - "pl-1", "pl-2", "pl-3", "pl-4", @@ -513,7 +515,6 @@ "sm:hidden", "sm:items-center", "sm:w-full", - "space-x-2", "space-y-2", "space-y-4", "sticky", @@ -523,6 +524,9 @@ "svg-container", "syntax-light", "systemd-networkd", + "tab-item", + "tablist", + "tabs", "text-2xl", "text-base", "text-black", diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 39e53cd65a80..32a87795f1f4 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,22 +1,13 @@ {{ $url := .Destination }} {{- if (strings.HasPrefix $url "http") -}} - {{/* external link, add icon */}} - - {{ .Text | safeHTML }} - - {{ partialCached "icon" "open_in_new" "open_in_new" }} - - + {{ .Text | safeHTML }} {{- else if (strings.HasPrefix $url "mailto:") -}} - {{/* mailto link, render as normal link */}} {{ .Text | safeHTML }} {{- else if (strings.HasPrefix $url "/") -}} {{ if (strings.HasSuffix (urls.Parse $url).Path ".md") }} - {{/* abs path to markdown file, use ref */}} {{ $url = (ref page $url) }} {{ end }} {{ .Text | safeHTML }} {{- else -}} - {{/* relative link, use ref */}} {{ .Text | safeHTML }} {{- end -}}