fix: prune double leading slash in favicon url

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-04-25 12:08:28 +02:00
parent 86dbe42ff3
commit 7755120664
7 changed files with 20 additions and 26 deletions

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -9,11 +9,7 @@
content="Reference documentation and Swagger (OpenAPI) specification for the {{ .File.BaseFileName }} version of the API served by Docker Engine." />
<meta charset="utf-8" />
<!-- favicon -->
<meta name="msapplication-TileImage" content="{{ site.BaseURL }}/assets/favicons/docs@2x.ico" />
<meta property="og:image" content="{{ site.BaseURL }}/assets/favicons/docs@2x.ico" />
<link rel="apple-touch-icon" type="image/x-icon" href="{{ site.BaseURL }}/assets/favicons/docs@2x.ico"
sizes="129x128" />
<link rel="icon" type="image/x-icon" href="{{ site.BaseURL }}/assets/favicons/docs@2x.ico" sizes="129x128" />
{{ partialCached "favicon.html" "favicon" }}
<!-- make the latest API version the canonical page as that's what we want users to be using mostly -->
<link rel="canonical" href="{{ site.BaseURL }}/engine/api/v{{ site.Params.latest_engine_api_version }}/" />
<style>

View File

@ -9,11 +9,7 @@
content="Reference documentation and Swagger (OpenAPI) specification for the {{ .File.BaseFileName }} API served by Docker Hub." />
<meta charset="utf-8" />
<!-- favicon -->
<meta name="msapplication-TileImage" content="{{ site.BaseURL }}/assets/favicons/docs@2x.ico" />
<meta property="og:image" content="{{ site.BaseURL }}/assets/favicons/docs@2x.ico" />
<link rel="apple-touch-icon" type="image/x-icon" href="{{ site.BaseURL }}/assets/favicons/docs@2x.ico"
sizes="129x128" />
<link rel="icon" type="image/x-icon" href="{{ site.BaseURL }}/assets/favicons/docs@2x.ico" sizes="129x128" />
{{ partialCached "favicon.html" "favicon" }}
<!-- make the latest API version the canonical page as that's what we want users to be using mostly -->
<link rel="canonical" href="{{ site.BaseURL }}/docker-hub/api/latest/" />
<style>

View File

@ -0,0 +1,17 @@
{{- $favicon := resources.Get "favicons/docs@2x.ico" }}
<link
rel="icon"
type="image/x-icon"
href="{{ $favicon.Permalink }}"
sizes="129x128"
/>
<link
rel="apple-touch-icon"
type="image/x-icon"
href="{{ $favicon.Permalink }}"
sizes="129x128"
/>
<meta
name="msapplication-TileImage"
content="{{ $favicon.Permalink }}"
/>

View File

@ -18,22 +18,7 @@
<link rel="canonical" href="{{ .Permalink }}" />
<!-- favicon -->
<link
rel="icon"
type="image/x-icon"
href="{{ site.BaseURL }}/assets/favicons/docs@2x.ico"
sizes="129x128"
/>
<link
rel="apple-touch-icon"
type="image/x-icon"
href="{{ site.BaseURL }}/assets/favicons/docs@2x.ico"
sizes="129x128"
/>
<meta
name="msapplication-TileImage"
content="{{ site.BaseURL }}/assets/favicons/docs@2x.ico"
/>
{{ partialCached "favicon.html" "favicon" }}
<meta name="theme-color" content="#2496ed" />
<!-- SEO -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB