diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-05-17 10:02:00 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-05-17 10:58:14 -0400 |
| commit | cf9bc8d45f274941bf5c8b4183fa38b8fe436604 (patch) | |
| tree | 4ed2e6d095978d8d606bac7e2b42b55d5b7fc632 | |
| parent | 14f38d1b8eae0dca312fe05300ea2a7ec975c1b8 (diff) | |
use SVG for /favicon.ico if browser asks for it
This makes Chromium use the SVG favicon universally including as the
favicon for non-HTML files.
| -rw-r--r-- | nginx/nginx.conf | 3 | ||||
| -rw-r--r-- | static/404.html | 2 | ||||
| -rw-r--r-- | static/articles/grapheneos-servers.html | 2 | ||||
| -rw-r--r-- | static/articles/index.html | 2 | ||||
| -rw-r--r-- | static/articles/server-traffic-shaping.html | 2 | ||||
| -rw-r--r-- | static/articles/sitewide-advertising-industry-opt-out.html | 2 | ||||
| -rw-r--r-- | static/build.html | 2 | ||||
| -rw-r--r-- | static/contact.html | 2 | ||||
| -rw-r--r-- | static/donate.html | 2 | ||||
| -rw-r--r-- | static/faq.html | 2 | ||||
| -rw-r--r-- | static/features.html | 2 | ||||
| -rw-r--r-- | static/history/copperheados.html | 2 | ||||
| -rw-r--r-- | static/history/index.html | 2 | ||||
| -rw-r--r-- | static/history/legacy-changelog.html | 2 | ||||
| -rw-r--r-- | static/index.html | 2 | ||||
| -rw-r--r-- | static/install/cli.html | 2 | ||||
| -rw-r--r-- | static/install/index.html | 2 | ||||
| -rw-r--r-- | static/install/web.html | 2 | ||||
| -rw-r--r-- | static/pdfviewer-privacy-policy.html | 2 | ||||
| -rw-r--r-- | static/releases.html | 2 | ||||
| -rw-r--r-- | static/source.html | 2 | ||||
| -rw-r--r-- | static/usage.html | 2 |
22 files changed, 24 insertions, 21 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 3f87f22e..6a6dbb1c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -215,6 +215,9 @@ http { } location = /favicon.ico { + if ($http_accept ~ "image/svg\+xml") { + rewrite ^ /favicon.svg last; + } include snippets/security-headers.conf; # avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880 add_header Cross-Origin-Resource-Policy "cross-origin" always; diff --git a/static/404.html b/static/404.html index bac0b697..8e17efdc 100644 --- a/static/404.html +++ b/static/404.html @@ -17,7 +17,7 @@ <meta property="og:image:height" content="512"/> <meta property="og:image:alt" content="GrapheneOS logo"/> <meta property="og:site_name" content="GrapheneOS"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/articles/grapheneos-servers.html b/static/articles/grapheneos-servers.html index c163521c..19249860 100644 --- a/static/articles/grapheneos-servers.html +++ b/static/articles/grapheneos-servers.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/articles/grapheneos-servers"/> <link rel="canonical" href="https://grapheneos.org/articles/grapheneos-servers"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/articles/index.html b/static/articles/index.html index dc6ea7e0..f3bf9951 100644 --- a/static/articles/index.html +++ b/static/articles/index.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/articles/"/> <link rel="canonical" href="https://grapheneos.org/articles/"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/articles/server-traffic-shaping.html b/static/articles/server-traffic-shaping.html index 080a01b6..fdf97c4b 100644 --- a/static/articles/server-traffic-shaping.html +++ b/static/articles/server-traffic-shaping.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/articles/server-traffic-shaping"/> <link rel="canonical" href="https://grapheneos.org/articles/server-traffic-shaping"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/articles/sitewide-advertising-industry-opt-out.html b/static/articles/sitewide-advertising-industry-opt-out.html index bfe5af87..7faf9931 100644 --- a/static/articles/sitewide-advertising-industry-opt-out.html +++ b/static/articles/sitewide-advertising-industry-opt-out.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/articles/sitewide-advertising-industry-opt-out"/> <link rel="canonical" href="https://grapheneos.org/articles/sitewide-advertising-industry-opt-out"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/build.html b/static/build.html index c74eeee6..e42e4fb1 100644 --- a/static/build.html +++ b/static/build.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/build"/> <link rel="canonical" href="https://grapheneos.org/build"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/contact.html b/static/contact.html index 6224b05d..a1f2777a 100644 --- a/static/contact.html +++ b/static/contact.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/contact"/> <link rel="canonical" href="https://grapheneos.org/contact"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/donate.html b/static/donate.html index 817c9530..81f92718 100644 --- a/static/donate.html +++ b/static/donate.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/donate"/> <link rel="canonical" href="https://grapheneos.org/donate"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/faq.html b/static/faq.html index b6c2cb7a..366c482a 100644 --- a/static/faq.html +++ b/static/faq.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/faq"/> <link rel="canonical" href="https://grapheneos.org/faq"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/features.html b/static/features.html index e27f4034..d3bf52ba 100644 --- a/static/features.html +++ b/static/features.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/features"/> <link rel="canonical" href="https://grapheneos.org/features"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/history/copperheados.html b/static/history/copperheados.html index b86ce233..bf11441d 100644 --- a/static/history/copperheados.html +++ b/static/history/copperheados.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/history/copperheados"/> <link rel="canonical" href="https://grapheneos.org/history/copperheados"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/history/index.html b/static/history/index.html index 01beb36f..91178eb7 100644 --- a/static/history/index.html +++ b/static/history/index.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/history/"/> <link rel="canonical" href="https://grapheneos.org/history/"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/history/legacy-changelog.html b/static/history/legacy-changelog.html index 01f9d767..de6e6932 100644 --- a/static/history/legacy-changelog.html +++ b/static/history/legacy-changelog.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/history/legacy-changelog"/> <link rel="canonical" href="https://grapheneos.org/history/legacy-changelog"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/index.html b/static/index.html index 6db3fd86..bd770079 100644 --- a/static/index.html +++ b/static/index.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/"/> <link rel="canonical" href="https://grapheneos.org/"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/install/cli.html b/static/install/cli.html index a15ea08f..91b95d0d 100644 --- a/static/install/cli.html +++ b/static/install/cli.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/install/cli"/> <link rel="canonical" href="https://grapheneos.org/install/cli"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/install/index.html b/static/install/index.html index 6a974479..60b16510 100644 --- a/static/install/index.html +++ b/static/install/index.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/install/"/> <link rel="canonical" href="https://grapheneos.org/install/"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/install/web.html b/static/install/web.html index 5bca7067..b85ba3e8 100644 --- a/static/install/web.html +++ b/static/install/web.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/install/web"/> <link rel="canonical" href="https://grapheneos.org/install/web"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/pdfviewer-privacy-policy.html b/static/pdfviewer-privacy-policy.html index 8b31f11a..311d4925 100644 --- a/static/pdfviewer-privacy-policy.html +++ b/static/pdfviewer-privacy-policy.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/pdfviewer-privacy-policy"/> <link rel="canonical" href="https://grapheneos.org/pdfviewer-privacy-policy"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/releases.html b/static/releases.html index ce7ed6d4..d14c08ba 100644 --- a/static/releases.html +++ b/static/releases.html @@ -20,7 +20,7 @@ <meta property="og:url" content="https://grapheneos.org/releases"/> <link rel="canonical" href="https://grapheneos.org/releases"/> <link rel="alternate" type="application/atom+xml" href="/releases.atom"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/source.html b/static/source.html index 7cf11150..0326695d 100644 --- a/static/source.html +++ b/static/source.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/source"/> <link rel="canonical" href="https://grapheneos.org/source"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> diff --git a/static/usage.html b/static/usage.html index 6c1e4ba1..0600411d 100644 --- a/static/usage.html +++ b/static/usage.html @@ -19,7 +19,7 @@ <meta property="og:site_name" content="GrapheneOS"/> <meta property="og:url" content="https://grapheneos.org/usage"/> <link rel="canonical" href="https://grapheneos.org/usage"/> - <link rel="icon" sizes="16x16 24x24 32x32 48x48 64x64" type="image/vnd.microsoft.icon" href="/favicon.ico"/> + <link rel="icon" href="/favicon.ico"/> <link rel="icon" sizes="any" type="image/svg+xml" href="/favicon.svg"/> <link rel="mask-icon" href="/mask-icon.svg" color="#1a1a1a"/> <link rel="apple-touch-icon" href="/apple-touch-icon.png"/> |
