Skip to content

Commit

Permalink
Merge pull request #694 from oddbird/favicon-2
Browse files Browse the repository at this point in the history
Add a lot more favicon options
  • Loading branch information
jamesnw authored Aug 26, 2024
2 parents 9267c64 + 597df56 commit 44afb89
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 2 deletions.
8 changes: 7 additions & 1 deletion content/_layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
<link rel="pingback" href="https://webmention.io/www.oddbird.net/xmlrpc" />

{# Favicon #}
<link rel="icon" href="/favicon.ico">
<link rel="icon" type="image/x-icon" sizes="48x48" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ff8b3d">
<meta name="msapplication-TileColor" content="#ff8b3d">

{% if perma %}
<link rel="canonical"
Expand Down
Binary file removed content/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default (eleventyConfig) => {
eleventyConfig.addPassthroughCopy({ 'src/media': 'assets/media' });

eleventyConfig.addPassthroughCopy('content/robots.txt');
eleventyConfig.addPassthroughCopy('content/favicon.ico');
eleventyConfig.addPassthroughCopy({ 'src/images/favicon': '.' });

// https://www.11ty.dev/docs/copy/#emulate-passthrough-copy-during-serve
// Used because: https://github.com/11ty/eleventy/issues/2297
Expand Down
Binary file added src/images/favicon/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicon/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/images/favicon/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#ff8b3d</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added src/images/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicon/favicon.ico
Binary file not shown.
Binary file added src/images/favicon/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/images/favicon/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/images/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

0 comments on commit 44afb89

Please sign in to comment.