Skip to content

Commit 7e07253

Browse files
committed
Improve Google search appearance: use PNG logo, add web manifest, fix alternateName
1 parent f56654e commit 7e07253

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

public/site.webmanifest

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "OpenTaint",
3+
"short_name": "opentaint",
4+
"icons": [
5+
{
6+
"src": "/favicon.svg",
7+
"type": "image/svg+xml",
8+
"sizes": "any"
9+
},
10+
{
11+
"src": "/apple-touch-icon.png",
12+
"sizes": "180x180",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#CA2121",
17+
"background_color": "#ffffff",
18+
"display": "browser"
19+
}

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const dataBlocks = Array.isArray(structuredData) ? structuredData : [structuredD
5858
<link rel="icon" href="/favicon.ico" sizes="16x16 32x32 48x48" />
5959
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
6060
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
61+
<link rel="manifest" href="/site.webmanifest" />
6162
<link rel="alternate" type="application/rss+xml" title={`${siteConfig.title} RSS Feed`} href="/rss.xml" />
6263
<script is:inline>
6364
(() => {

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ const structuredData = [
1313
"@context": "https://schema.org",
1414
"@type": "WebSite",
1515
name: siteConfig.title,
16-
alternateName: "OpenTaint",
16+
alternateName: "opentaint",
1717
url: siteConfig.url,
1818
},
1919
{
2020
"@context": "https://schema.org",
2121
"@type": "Organization",
2222
name: siteConfig.author,
2323
url: siteConfig.url,
24-
logo: `${siteConfig.url}/logo.svg`,
24+
logo: `${siteConfig.url}/apple-touch-icon.png`,
2525
},
2626
];
2727
---

0 commit comments

Comments
 (0)