Skip to content

Commit 8bcdd25

Browse files
committed
Add SVG favicon
Fixes: #2554
1 parent 28e093e commit 8bcdd25

File tree

7 files changed

+13
-2
lines changed

7 files changed

+13
-2
lines changed

dist/doc/usage.md

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ A basic HTML5 Boilerplate site initially looks something like this:
4545
├── favicon.ico
4646
├── humans.txt
4747
├── icon.png
48+
├── icon.svg
4849
├── index.html
4950
├── package.json
5051
├── robots.txt

dist/icon.svg

+1
Loading

dist/index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
<meta property="og:url" content="">
1313
<meta property="og:image" content="">
1414

15-
<link rel="manifest" href="site.webmanifest">
15+
<link rel="icon" href="/favicon.ico" sizes="any">
16+
<link rel="icon" href="/icon.svg" type="image/svg+xml">
17+
1618
<link rel="apple-touch-icon" href="icon.png">
1719
<!-- Place favicon.ico in the root directory -->
1820

1921
<link rel="stylesheet" href="css/normalize.css">
2022
<link rel="stylesheet" href="css/style.css">
2123

24+
<link rel="manifest" href="site.webmanifest">
2225
<meta name="theme-color" content="#fafafa">
2326
</head>
2427

src/doc/usage.md

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ A basic HTML5 Boilerplate site initially looks something like this:
4545
├── favicon.ico
4646
├── humans.txt
4747
├── icon.png
48+
├── icon.svg
4849
├── index.html
4950
├── package.json
5051
├── robots.txt

src/icon.svg

+1
Loading

src/index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
<meta property="og:url" content="">
1313
<meta property="og:image" content="">
1414

15-
<link rel="manifest" href="site.webmanifest">
15+
<link rel="icon" href="/favicon.ico" sizes="any">
16+
<link rel="icon" href="/icon.svg" type="image/svg+xml">
17+
1618
<link rel="apple-touch-icon" href="icon.png">
1719
<!-- Place favicon.ico in the root directory -->
1820

1921
<link rel="stylesheet" href="css/normalize.css">
2022
<link rel="stylesheet" href="css/style.css">
2123

24+
<link rel="manifest" href="site.webmanifest">
2225
<meta name="theme-color" content="#fafafa">
2326
</head>
2427

test/file_existence.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const expectedFilesInDistDir = [
3939
'favicon.ico',
4040

4141
'icon.png',
42+
'icon.svg',
4243

4344
'img/',
4445
'img/.gitignore',

0 commit comments

Comments
 (0)