Skip to content

Commit 1933859

Browse files
committed
Improve website metadata
1 parent f767b17 commit 1933859

6 files changed

Lines changed: 88 additions & 26 deletions

File tree

public/images/banner-og.webp

39.5 KB
Loading

public/manifest.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
2-
"name": "PyDay Chile 2025",
3-
"short_name": "PyDay CL",
4-
"description": "Evento anual gratuito para promover y fomentar el lenguaje de programación Python en Chile",
5-
"start_url": "/",
6-
"display": "standalone",
7-
"background_color": "#ffffff",
8-
"theme_color": "#3775a9",
9-
"icons": [
10-
{
11-
"src": "/android-chrome-192x192.webp",
12-
"sizes": "192x192",
13-
"type": "image/png"
14-
},
15-
{
16-
"src": "/android-chrome-512x512.webp",
17-
"sizes": "512x512",
18-
"type": "image/webp"
19-
},
20-
{
21-
"src": "/maskable-icon.webp",
22-
"sizes": "512x512",
23-
"type": "image/webp",
24-
"purpose": "maskable"
25-
}
26-
]
27-
}
2+
"name": "PyDay Chile 2025",
3+
"short_name": "PyDay CL",
4+
"description": "Evento anual gratuito para promover y fomentar el lenguaje de programación Python en Chile",
5+
"start_url": "/",
6+
"display": "standalone",
7+
"background_color": "#101010",
8+
"theme_color": "#3D8B37",
9+
"icons": [
10+
{
11+
"src": "/android-chrome-192x192.webp",
12+
"sizes": "192x192",
13+
"type": "image/webp"
14+
},
15+
{
16+
"src": "/android-chrome-512x512.webp",
17+
"sizes": "512x512",
18+
"type": "image/webp"
19+
},
20+
{
21+
"src": "/maskable-icon.webp",
22+
"sizes": "512x512",
23+
"type": "image/webp",
24+
"purpose": "maskable"
25+
}
26+
]
27+
}

public/maskable_icon.png

159 KB
Loading

public/maskable_icon.webp

14.5 KB
Loading

public/robots.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# robots.txt para PyDay Chile
2+
# https://pyday.vercel.app/
3+
4+
# Permitir a todos los robots de búsqueda
5+
User-agent: *
6+
Allow: /
7+
8+
# Bloquear acceso a archivos internos/desarrollo
9+
Disallow: /firebase-config.js
10+
Disallow: /firebase.json
11+
Disallow: /docs/
12+
13+
# Rutas específicas
14+
Allow: /[city]
15+
Allow: /multimedia
16+
Allow: /previous-editions
17+
Allow: /register
18+
Allow: /sponsors
19+
20+
# Dirección del sitemap
21+
Sitemap: https://pyday.vercel.app//sitemap.xml
22+
23+
# Velocidad de rastreo para Google
24+
User-agent: Googlebot
25+
Crawl-delay: 1
26+
27+
# Velocidad de rastreo para Bing
28+
User-agent: Bingbot
29+
Crawl-delay: 2
30+
31+
# Velocidad de rastreo para otros robots
32+
User-agent: *
33+
Crawl-delay: 3

src/app/sitemap.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import cityData from "@/data/cities";
2+
3+
export default async function sitemap() {
4+
const baseUrl = "https://pyday.vercel.app/";
5+
6+
// Rutas estáticas
7+
const staticRoutes = [
8+
'',
9+
'/multimedia',
10+
'/previous-editions',
11+
'/register',
12+
'/sponsors',
13+
].map(route => ({
14+
url: `${baseUrl}${route}`,
15+
lastModified: new Date(),
16+
changeFrequency: 'weekly',
17+
priority: route === '' ? 1.0 : 0.8,
18+
}));
19+
20+
// Rutas dinámicas basadas en ciudades
21+
const citiesRoutes = Object.keys(cityData).map(citySlug => ({
22+
url: `${baseUrl}/${citySlug}`,
23+
lastModified: new Date(),
24+
changeFrequency: 'weekly',
25+
priority: 0.9,
26+
}));
27+
28+
return [...staticRoutes, ...citiesRoutes];
29+
}

0 commit comments

Comments
 (0)