Skip to content

Commit 65a8f8c

Browse files
committed
feat: add sitemap integration to Astro configuration
1 parent a1b28d7 commit 65a8f8c

File tree

4 files changed

+52
-2
lines changed

4 files changed

+52
-2
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import tailwind from '@astrojs/tailwind';
55

66
import alpinejs from '@astrojs/alpinejs';
77

8+
import sitemap from '@astrojs/sitemap';
9+
810
// https://astro.build/config
911
export default defineConfig({
1012
site: "https://ecuadorintech.org",
11-
integrations: [tailwind(), alpinejs()]
13+
integrations: [tailwind(), alpinejs(), sitemap()]
1214
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@astrojs/alpinejs": "^0.4.0",
13+
"@astrojs/sitemap": "^3.2.1",
1314
"@astrojs/tailwind": "^5.1.3",
1415
"@types/alpinejs": "^3.13.11",
1516
"alpinejs": "^3.14.6",

pnpm-lock.yaml

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/layouts/Layout.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ const { title } = Astro.props;
1010
---
1111

1212
<!doctype html>
13-
<html lang="en">
13+
<html lang="es">
1414
<head>
1515
<meta charset="UTF-8" />
1616
<meta name="description" content="Ecuador In Tech" />
1717
<meta name="viewport" content="width=device-width" />
1818
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
19+
<link rel="sitemap" href="/sitemap-index.xml" />
1920
<meta name="generator" content={Astro.generator} />
2021
<title>{title}</title>
2122

0 commit comments

Comments
 (0)