Skip to content

Commit e0ac8c2

Browse files
authored
Merge pull request #24009 from dvdksn/favicon
site: add standard favicon formats for search engine compatibility
2 parents f6cf53b + 5e0ba21 commit e0ac8c2

File tree

7 files changed

+8
-5
lines changed

7 files changed

+8
-5
lines changed

layouts/_default/api.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
<meta name="description" content="{{ .Description }}" />
99
<meta charset="utf-8" />
1010
<!-- favicon -->
11-
<link rel="shortcut icon" href="/assets/images/favicon.svg" type="image/svg">
11+
<link rel="icon" href="/assets/images/favicon-32x32.png" sizes="32x32" />
12+
<link rel="icon" href="/assets/images/favicon-192x192.png" sizes="192x192" />
13+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
14+
<link rel="shortcut icon" href="/favicon.ico">
1215
<!--
1316
Provide a link to the swagger / OpenAPI spec itself. We're currently using
1417
Swagger (OpenAPI v2) for some, so use a more generic "application/yaml" type.

layouts/partials/meta.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
<link rel="canonical" href="{{ .Permalink }}" />
1818

1919
<!-- favicon -->
20-
<link rel="shortcut icon" href="/assets/images/favicon.svg" type="image/svg">
20+
<link rel="icon" href="/assets/images/favicon-32x32.png" sizes="32x32" />
21+
<link rel="icon" href="/assets/images/favicon-192x192.png" sizes="192x192" />
22+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
23+
<link rel="shortcut icon" href="/favicon.ico">
2124
<meta name="theme-color" content="#2496ed" />
2225

2326
<!-- SEO -->

static/apple-touch-icon.png

2.83 KB
Loading
3 KB
Loading
751 Bytes
Loading

static/assets/images/favicon.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

static/favicon.ico

74.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)