Skip to content

Commit 7755120

Browse files
committed
fix: prune double leading slash in favicon url
Signed-off-by: David Karlsson <[email protected]>
1 parent 86dbe42 commit 7755120

File tree

7 files changed

+20
-26
lines changed

7 files changed

+20
-26
lines changed
File renamed without changes.
File renamed without changes.

layouts/_default/engine-api-baseof.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
content="Reference documentation and Swagger (OpenAPI) specification for the {{ .File.BaseFileName }} version of the API served by Docker Engine." />
1010
<meta charset="utf-8" />
1111
<!-- favicon -->
12-
<meta name="msapplication-TileImage" content="{{ site.BaseURL }}/assets/favicons/[email protected]" />
13-
<meta property="og:image" content="{{ site.BaseURL }}/assets/favicons/[email protected]" />
14-
<link rel="apple-touch-icon" type="image/x-icon" href="{{ site.BaseURL }}/assets/favicons/[email protected]"
15-
sizes="129x128" />
16-
<link rel="icon" type="image/x-icon" href="{{ site.BaseURL }}/assets/favicons/[email protected]" sizes="129x128" />
12+
{{ partialCached "favicon.html" "favicon" }}
1713
<!-- make the latest API version the canonical page as that's what we want users to be using mostly -->
1814
<link rel="canonical" href="{{ site.BaseURL }}/engine/api/v{{ site.Params.latest_engine_api_version }}/" />
1915
<style>

layouts/_default/hub-api-baseof.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
content="Reference documentation and Swagger (OpenAPI) specification for the {{ .File.BaseFileName }} API served by Docker Hub." />
1010
<meta charset="utf-8" />
1111
<!-- favicon -->
12-
<meta name="msapplication-TileImage" content="{{ site.BaseURL }}/assets/favicons/[email protected]" />
13-
<meta property="og:image" content="{{ site.BaseURL }}/assets/favicons/[email protected]" />
14-
<link rel="apple-touch-icon" type="image/x-icon" href="{{ site.BaseURL }}/assets/favicons/[email protected]"
15-
sizes="129x128" />
16-
<link rel="icon" type="image/x-icon" href="{{ site.BaseURL }}/assets/favicons/[email protected]" sizes="129x128" />
12+
{{ partialCached "favicon.html" "favicon" }}
1713
<!-- make the latest API version the canonical page as that's what we want users to be using mostly -->
1814
<link rel="canonical" href="{{ site.BaseURL }}/docker-hub/api/latest/" />
1915
<style>

layouts/partials/favicon.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{- $favicon := resources.Get "favicons/[email protected]" }}
2+
<link
3+
rel="icon"
4+
type="image/x-icon"
5+
href="{{ $favicon.Permalink }}"
6+
sizes="129x128"
7+
/>
8+
<link
9+
rel="apple-touch-icon"
10+
type="image/x-icon"
11+
href="{{ $favicon.Permalink }}"
12+
sizes="129x128"
13+
/>
14+
<meta
15+
name="msapplication-TileImage"
16+
content="{{ $favicon.Permalink }}"
17+
/>

layouts/partials/meta.html

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,7 @@
1818
<link rel="canonical" href="{{ .Permalink }}" />
1919

2020
<!-- favicon -->
21-
<link
22-
rel="icon"
23-
type="image/x-icon"
24-
href="{{ site.BaseURL }}/assets/favicons/[email protected]"
25-
sizes="129x128"
26-
/>
27-
<link
28-
rel="apple-touch-icon"
29-
type="image/x-icon"
30-
href="{{ site.BaseURL }}/assets/favicons/[email protected]"
31-
sizes="129x128"
32-
/>
33-
<meta
34-
name="msapplication-TileImage"
35-
content="{{ site.BaseURL }}/assets/favicons/[email protected]"
36-
/>
21+
{{ partialCached "favicon.html" "favicon" }}
3722
<meta name="theme-color" content="#2496ed" />
3823

3924
<!-- SEO -->

static/assets/favicons/favicon.ico

-3.46 KB
Binary file not shown.

0 commit comments

Comments
 (0)