Skip to content

Commit bf0ae1d

Browse files
committed
feat: init seo
1 parent 65efcc4 commit bf0ae1d

File tree

4 files changed

+103
-0
lines changed

4 files changed

+103
-0
lines changed

app/about/page.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export default function About() {
2+
return (
3+
<div className="container mx-auto px-4">
4+
<h1 className="text-3xl font-bold">About</h1>
5+
<p className="mt-4">
6+
Librarease is a simple and powerful library management system. It is
7+
designed to help libraries manage their collections, track their
8+
borrowings, and communicate with their users.
9+
</p>
10+
</div>
11+
)
12+
}

app/opengraph-image.png

222 KB
Loading

app/robots.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { MetadataRoute } from 'next'
2+
3+
export default function robots(): MetadataRoute.Robots {
4+
return {
5+
rules: {
6+
userAgent: '*',
7+
allow: '/',
8+
disallow: [
9+
'/borrowings/*',
10+
'/subscriptions/*',
11+
'/notifications/*',
12+
'/users/*',
13+
],
14+
},
15+
sitemap: 'https://librarease.org/sitemap.xml',
16+
}
17+
}

app/sitemap.ts

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import type { MetadataRoute } from 'next'
2+
3+
const BASE_URL = 'https://librarease.org'
4+
5+
export default function sitemap(): MetadataRoute.Sitemap {
6+
return [
7+
{
8+
url: `${BASE_URL}`,
9+
lastModified: new Date(),
10+
changeFrequency: 'monthly',
11+
priority: 1,
12+
},
13+
{
14+
url: `${BASE_URL}/about`,
15+
lastModified: new Date(),
16+
changeFrequency: 'weekly',
17+
priority: 0.8,
18+
},
19+
{
20+
url: `${BASE_URL}/books`,
21+
lastModified: new Date(),
22+
changeFrequency: 'weekly',
23+
priority: 0.8,
24+
},
25+
{
26+
url: `${BASE_URL}/books/[id]`,
27+
lastModified: new Date(),
28+
changeFrequency: 'weekly',
29+
priority: 0.8,
30+
},
31+
{
32+
url: `${BASE_URL}/memberships`,
33+
lastModified: new Date(),
34+
changeFrequency: 'weekly',
35+
priority: 0.8,
36+
},
37+
{
38+
url: `${BASE_URL}/libraries`,
39+
lastModified: new Date(),
40+
changeFrequency: 'weekly',
41+
priority: 0.8,
42+
},
43+
{
44+
url: `${BASE_URL}/libraries/[id]`,
45+
lastModified: new Date(),
46+
changeFrequency: 'weekly',
47+
priority: 0.8,
48+
},
49+
{
50+
url: `${BASE_URL}/login`,
51+
lastModified: new Date(),
52+
changeFrequency: 'weekly',
53+
priority: 0.5,
54+
},
55+
{
56+
url: `${BASE_URL}/signup`,
57+
lastModified: new Date(),
58+
changeFrequency: 'weekly',
59+
priority: 0.5,
60+
},
61+
{
62+
url: `${BASE_URL}/privacy`,
63+
lastModified: new Date(),
64+
changeFrequency: 'weekly',
65+
priority: 0.5,
66+
},
67+
{
68+
url: `${BASE_URL}/terms`,
69+
lastModified: new Date(),
70+
changeFrequency: 'weekly',
71+
priority: 0.5,
72+
},
73+
]
74+
}

0 commit comments

Comments
 (0)