Skip to content

Commit

Permalink
Better favicon definitions, 2021 bullet proof (#2948)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Dec 22, 2021
1 parent 2ba0ade commit 2d33eea
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 32 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Internal

- Better favicon definitions, 2021 bullet proof @sneridagh

## 14.0.1 (2021-12-21)

### Bugfix
Expand Down
13 changes: 13 additions & 0 deletions public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 2 additions & 12 deletions src/helpers/Html/Html.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,13 @@ class Html extends Component {
}}
/>

<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<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" />
<meta name="generator" content="Plone 6 - https://plone.org" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down
36 changes: 16 additions & 20 deletions src/helpers/Html/__snapshots__/Html.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,19 @@ exports[`Html renders a html component 1`] = `
}
/>
<link
href="/apple-touch-icon.png"
rel="apple-touch-icon"
sizes="180x180"
href="/favicon.ico"
rel="icon"
sizes="any"
/>
<link
href="/favicon-32x32.png"
href="/icon.svg"
rel="icon"
sizes="32x32"
type="image/png"
type="image/svg+xml"
/>
<link
href="/favicon-16x16.png"
rel="icon"
sizes="16x16"
type="image/png"
href="/apple-touch-icon.png"
rel="apple-touch-icon"
sizes="180x180"
/>
<link
href="/site.webmanifest"
Expand Down Expand Up @@ -118,21 +116,19 @@ exports[`Html renders a html component with apiPath present 1`] = `
}
/>
<link
href="/apple-touch-icon.png"
rel="apple-touch-icon"
sizes="180x180"
href="/favicon.ico"
rel="icon"
sizes="any"
/>
<link
href="/favicon-32x32.png"
href="/icon.svg"
rel="icon"
sizes="32x32"
type="image/png"
type="image/svg+xml"
/>
<link
href="/favicon-16x16.png"
rel="icon"
sizes="16x16"
type="image/png"
href="/apple-touch-icon.png"
rel="apple-touch-icon"
sizes="180x180"
/>
<link
href="/site.webmanifest"
Expand Down

0 comments on commit 2d33eea

Please sign in to comment.