Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,17 @@ All commands are run from the root of the project, from a terminal:
| `npm run preview` | Preview the build locally |
| `npm run format` | Run formatter |
| `npm run upgrade` | Upgrade astro |

## Favicon

Additionally, here are the steps for creating the favicons from the SVG (inspired by [this](https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs)):

```bash
inkscape ./public/icon.svg --export-width=32 --export-filename=./tmp.png
magick ./tmp.png ./public/favicon.ico
rm ./tmp.png
inkscape --export-type="png" --export-width=140 --export-filename="./tmp.png" ./public/icon.svg
# FFFFF0 matches "ivory" from the CSS
magick ./tmp.png -background "#fffff0" -gravity center -extent 180x180 ./public/apple-touch-icon.png
rm ./tmp.png
```
Binary file removed public/android-chrome-192x192.png
Binary file not shown.
Binary file removed public/android-chrome-384x384.png
Binary file not shown.
Binary file modified public/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: 0 additions & 9 deletions public/browserconfig.xml

This file was deleted.

Binary file removed public/favicon-16x16.png
Binary file not shown.
Binary file removed public/favicon-32x32.png
Binary file not shown.
Binary file modified public/favicon.ico
Binary file not shown.
1 change: 1 addition & 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.
20 changes: 0 additions & 20 deletions public/manifest.json

This file was deleted.

Binary file removed public/mstile-150x150.png
Binary file not shown.
49 changes: 0 additions & 49 deletions public/safari-pinned-tab.svg

This file was deleted.

25 changes: 3 additions & 22 deletions src/components/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -87,28 +87,9 @@ if (title !== undefined) {
/>
) : undefined
}
<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="/manifest.json" /><link
rel="mask-icon"
href="/safari-pinned-tab.svg"
color="#fffff8"
/><meta name="msapplication-TileColor" content="#fffff8" /><meta
name="theme-color"
content="#fffff8"
/>
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />

<!-- title -->
<title>{actualTitle}</title>
Expand Down
Loading