Add SVG favicon

Fixes: #2554
This commit is contained in:
Christian Oliff
2021-10-27 10:32:43 +09:00
parent 28e093e455
commit 8bcdd253de
7 changed files with 13 additions and 2 deletions

1
dist/doc/usage.md vendored
View File

@@ -45,6 +45,7 @@ A basic HTML5 Boilerplate site initially looks something like this:
├── favicon.ico
├── humans.txt
├── icon.png
├── icon.svg
├── index.html
├── package.json
├── robots.txt

1
dist/icon.svg vendored Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 192 192"><path fill="#e08524" d="M75.3 73.4H18.4l45.3 34.3L48.3 163l46.1-32.3 48.2 34.6-16.9-58.3 44.9-33.6H115l-20.5-55-19.2 55z"/><path d="m96.7 18.8 18.2 8.2 16.5 44.3h-15.1L96.7 18.8zm-47 146 18.7 9.9 42.6-29.9-16.5-11.4-44.8 31.4zm79.1-56.8 17.4 9.4 18.6 60.1-19.7-11.3-16.3-58.2z"/><path d="m173.1 74.3 17.8 9.2-44.7 34-17.4-9.4 44.3-33.8z"/></svg>

After

Width:  |  Height:  |  Size: 429 B

5
dist/index.html vendored
View File

@@ -12,13 +12,16 @@
<meta property="og:url" content="">
<meta property="og:image" content="">
<link rel="manifest" href="site.webmanifest">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link rel="manifest" href="site.webmanifest">
<meta name="theme-color" content="#fafafa">
</head>

View File

@@ -45,6 +45,7 @@ A basic HTML5 Boilerplate site initially looks something like this:
├── favicon.ico
├── humans.txt
├── icon.png
├── icon.svg
├── index.html
├── package.json
├── robots.txt

1
src/icon.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 192 192"><path fill="#e08524" d="M75.3 73.4H18.4l45.3 34.3L48.3 163l46.1-32.3 48.2 34.6-16.9-58.3 44.9-33.6H115l-20.5-55-19.2 55z"/><path d="m96.7 18.8 18.2 8.2 16.5 44.3h-15.1L96.7 18.8zm-47 146 18.7 9.9 42.6-29.9-16.5-11.4-44.8 31.4zm79.1-56.8 17.4 9.4 18.6 60.1-19.7-11.3-16.3-58.2z"/><path d="m173.1 74.3 17.8 9.2-44.7 34-17.4-9.4 44.3-33.8z"/></svg>

After

Width:  |  Height:  |  Size: 429 B

View File

@@ -12,13 +12,16 @@
<meta property="og:url" content="">
<meta property="og:image" content="">
<link rel="manifest" href="site.webmanifest">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link rel="manifest" href="site.webmanifest">
<meta name="theme-color" content="#fafafa">
</head>

View File

@@ -39,6 +39,7 @@ const expectedFilesInDistDir = [
'favicon.ico',
'icon.png',
'icon.svg',
'img/',
'img/.gitignore',