Add favicon for Google Search results (#7205)
- A side-quest from "7166 improve search metadata". - The favicon must be from the same domain as the homepage, so the CDN URL couldn't be used, hence the additional upload. - The favicon also needs to be multiples of 48x48 and above. - Wanted to use SVG for the smallest size possible, but seems like Safari does not fully support it. Got Dejan to give me a reasonably-sized PNG. ## Reference https://developers.google.com/search/docs/advanced/appearance/favicon-in-search#guidelines
This commit is contained in:
parent
dac8d711d1
commit
d3be8726fc
4 changed files with 9 additions and 1 deletions
BIN
static/img/favicon-spaceman.png
Normal file
BIN
static/img/favicon-spaceman.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
|
@ -13,6 +13,8 @@
|
|||
<link rel="preload" href="/public/font/v1/700.woff" as="font" type="font/woff" crossorigin />
|
||||
<link rel="preload" href="/public/font/v1/700i.woff" as="font" type="font/woff" crossorigin />
|
||||
|
||||
<link rel="shortcut icon" href="/public/favicon-spaceman.png">
|
||||
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
|
|
|
@ -8,7 +8,8 @@ const STATIC_ASSET_PATHS = [
|
|||
'/public/font/v1/400i.woff',
|
||||
'/public/font/v1/700.woff',
|
||||
'/public/font/v1/700i.woff',
|
||||
'/public/favicon.png',
|
||||
'/public/favicon.png', // LBRY icon
|
||||
'/public/favicon-spaceman.png',
|
||||
'/public/img/busy.gif',
|
||||
'/public/img/fileRenderPlaceholder.png',
|
||||
'/public/img/gerbil-happy.png',
|
||||
|
|
|
@ -50,6 +50,11 @@ const copyWebpackCommands = [
|
|||
to: `${DIST_ROOT}/public/favicon.png`,
|
||||
force: true,
|
||||
},
|
||||
{
|
||||
from: `${STATIC_ROOT}/img/favicon-spaceman.png`,
|
||||
to: `${DIST_ROOT}/public/favicon-spaceman.png`,
|
||||
force: true,
|
||||
},
|
||||
{
|
||||
from: `${STATIC_ROOT}/img/v2-og.png`,
|
||||
to: `${DIST_ROOT}/public/v2-og.png`,
|
||||
|
|
Loading…
Reference in a new issue