Skip to content

Commit 85a28c3

Browse files
authored
Merge pull request #17 from xandemon/seo
SEO and Indexing
2 parents 97671f9 + 30e9edd commit 85a28c3

File tree

7 files changed

+86
-4
lines changed

7 files changed

+86
-4
lines changed

docs/assets/robots.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
User-agent: *
3+
Allow: /
4+
5+
Sitemap: https://xandemon.github.io/developer-icons/sitemap-index.xml

docs/astro.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineConfig } from "astro/config";
22
import react from "@astrojs/react";
33
import tailwind from "@astrojs/tailwind";
44
import partytown from "@astrojs/partytown";
5+
import sitemap from "@astrojs/sitemap";
56

67
// https://astro.build/config
78
export default defineConfig({
@@ -14,5 +15,5 @@ export default defineConfig({
1415
config: {
1516
forward: ['dataLayer.push']
1617
}
17-
})],
18+
}), sitemap()],
1819
});

docs/package-lock.json

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

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@astrojs/check": "^0.6.0",
1414
"@astrojs/partytown": "^2.1.2",
1515
"@astrojs/react": "^3.3.4",
16+
"@astrojs/sitemap": "^3.2.1",
1617
"@astrojs/tailwind": "^5.1.0",
1718
"@fontsource-variable/noto-sans": "^5.0.5",
1819
"@radix-ui/react-alert-dialog": "^1.1.2",

docs/src/layouts/DocsLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ flattenedDocs.sort((a, b) => a.frontmatter.order - b.frontmatter.order);
3131
<html lang="en">
3232
<head>
3333
<meta charset="UTF-8" />
34+
<title>{props.frontmatter.title}</title>
3435
<meta
3536
name="description"
3637
content="Ready-to-use beautiful tech stack icon components for developers"
@@ -41,10 +42,9 @@ flattenedDocs.sort((a, b) => a.frontmatter.order - b.frontmatter.order);
4142
type="image/svg+xml"
4243
href={`${publicBaseUrl}/favicon.svg`}
4344
/>
45+
<link rel="sitemap" href="/sitemap-index.xml" />
4446
<meta name="generator" content={Astro.generator} />
4547

46-
<title>{props.frontmatter.title}</title>
47-
4848
<!-- Google tag (gtag.js) -->
4949
<script
5050
type="text/partytown"

docs/src/layouts/Layout.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const measurementId = import.meta.env.PUBLIC_GA_MEASUREMENT_ID;
1717
<html lang="en">
1818
<head>
1919
<meta charset="UTF-8" />
20+
<title>{title}</title>
2021
<meta
2122
name="description"
2223
content="Ready-to-use beautiful tech stack icon components for developers"
@@ -27,8 +28,8 @@ const measurementId = import.meta.env.PUBLIC_GA_MEASUREMENT_ID;
2728
type="image/svg+xml"
2829
href={`${publicBaseUrl}/favicon.svg`}
2930
/>
31+
<link rel="sitemap" href="/sitemap-index.xml" />
3032
<meta name="generator" content={Astro.generator} />
31-
<title>{title}</title>
3233

3334
<!-- Google tag (gtag.js) -->
3435
<script
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: googlea2f4221be7d8956b.html

0 commit comments

Comments
 (0)