Skip to content

Commit b8608a5

Browse files
authored
Merge pull request #14 from codeforjapan/fix/metadata
release: start indexing by search engine
2 parents ce15d14 + c4571e8 commit b8608a5

10 files changed

+42
-6
lines changed

app/components/Favicon.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// generated with https://realfavicongenerator.net
2+
3+
export const Favicons = () => (
4+
<>
5+
<link href="/favicon-96x96.png" rel="icon" sizes="96x96" type="image/png" />
6+
<link href="/favicon.svg" rel="icon" type="image/svg+xml" />
7+
<link href="/favicon.ico" rel="shortcut icon" />
8+
<link href="/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
9+
<meta content="BirdXPlorer" name="apple-mobile-web-app-title" />
10+
<link href="/site.webmanifest" rel="manifest" />
11+
</>
12+
);

app/root.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
import dayjs from "dayjs";
1616
import customParseFormat from "dayjs/plugin/customParseFormat";
1717

18+
import { Favicons } from "./components/Favicon";
1819
import { mantineTheme } from "./config/mantine";
1920

2021
dayjs.extend(customParseFormat);
@@ -25,6 +26,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
2526
<head>
2627
<meta charSet="utf-8" />
2728
<meta content="width=device-width, initial-scale=1" name="viewport" />
29+
<Favicons />
2830
<Meta />
2931
<Links />
3032
<ColorSchemeScript />

app/routes/_index.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,15 @@ import {
2929

3030
export const meta: MetaFunction = () => {
3131
return [
32-
{ title: "BirdXPlorer Viewer" },
32+
{ title: "BirdXplorer" },
3333
{
3434
name: "description",
3535
content:
36-
"BirdXPlorer Viewer is a X community note viewer with search functionality.",
36+
"BirdXplorer is software that helps users explore community notes data on X (formerly known as Twitter).",
3737
},
3838
{
39-
// TODO: 2. サブドメインの紐付けが完了したら外す
4039
name: "robots",
41-
content: "noindex, nofollow",
40+
content: "index, follow",
4241
},
4342
];
4443
};
@@ -47,7 +46,6 @@ export const links: LinksFunction = () => {
4746
return [
4847
{
4948
rel: "canonical",
50-
// TODO: 1. サブドメインの紐付けが完了したら必要に応じて URL を差し替える
5149
href: "https://birdxplorer.code4japan.org",
5250
},
5351
];
@@ -113,7 +111,7 @@ export default function Index() {
113111
<>
114112
<header className="border-b border-gray-300">
115113
<Container className="p-4" size="lg">
116-
<h1 className="text-2xl font-bold">BirdXPlorer</h1>
114+
<h1 className="text-2xl font-bold">BirdXplorer</h1>
117115
</Container>
118116
</header>
119117
<main>

public/apple-touch-icon.png

7.95 KB
Loading

public/favicon-96x96.png

4.17 KB
Loading

public/favicon.ico

-1.83 KB
Binary file not shown.

public/favicon.svg

+3
Loading

public/site.webmanifest

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "BirdXPlorer",
3+
"short_name": "BirdXPlorer",
4+
"icons": [
5+
{
6+
"src": "/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#ffffff",
20+
"display": "standalone"
21+
}

public/web-app-manifest-192x192.png

9.79 KB
Loading

public/web-app-manifest-512x512.png

47.5 KB
Loading

0 commit comments

Comments
 (0)