Skip to content

Commit 599147c

Browse files
authored
fix: favicon markup (#2115)
1 parent be9fe9c commit 599147c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/site/layouts/partials/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link href="{{ .Site.BaseURL }}static/style.css" rel="stylesheet" type="text/css" />
1212

1313
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
14-
<link rel="shortcut icon" href="{{ .Site.BaseURL }}static/images/favicon.png" type="image/x-icon" />
14+
<link rel="icon" href="{{ .Site.BaseURL }}static/images/favicon.png" type="image/png" />
1515

1616
<meta property="og:title" content="{{ .Title }}" />
1717
{{ if .Params.thumbnail }}
@@ -39,4 +39,4 @@
3939
</nav>
4040
</div>
4141
</header>
42-
</div>
42+
</div>

static/public/templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<script src="/public/custom.js?v={{ .AssetVersion }}" async defer></script>
1818

1919
{{ if ne .FaviconURL "" }}
20-
<link rel="shortcut icon" href="{{ .FaviconURL }}" type="image/x-icon" />
20+
<link rel="icon" href="{{ .FaviconURL }}" type="image/x-icon" />
2121
{{ else }}
22-
<link rel="shortcut icon" href="/public/static/favicon.png?v={{ .AssetVersion }}" type="image/x-icon" />
22+
<link rel="icon" href="/public/static/favicon.png?v={{ .AssetVersion }}" type="image/png" />
2323
{{ end }}
2424
</head>
2525
<body>

0 commit comments

Comments
 (0)