Skip to content

Commit

Permalink
Merge pull request #17 from xandemon/seo
Browse files Browse the repository at this point in the history
SEO and Indexing
  • Loading branch information
xandemon committed Nov 30, 2024
2 parents 97671f9 + 30e9edd commit a28423a
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/assets/googlea2f4221be7d8956b.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: googlea2f4221be7d8956b.html
5 changes: 5 additions & 0 deletions docs/assets/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

User-agent: *
Allow: /

Sitemap: https://xandemon.github.io/developer-icons/sitemap-index.xml
3 changes: 2 additions & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import partytown from "@astrojs/partytown";
import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
Expand All @@ -14,5 +15,5 @@ export default defineConfig({
config: {
forward: ['dataLayer.push']
}
})],
}), sitemap()],
});
73 changes: 73 additions & 0 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@astrojs/check": "^0.6.0",
"@astrojs/partytown": "^2.1.2",
"@astrojs/react": "^3.3.4",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.0",
"@fontsource-variable/noto-sans": "^5.0.5",
"@radix-ui/react-alert-dialog": "^1.1.2",
Expand Down
4 changes: 2 additions & 2 deletions docs/src/layouts/DocsLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ flattenedDocs.sort((a, b) => a.frontmatter.order - b.frontmatter.order);
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>{props.frontmatter.title}</title>
<meta
name="description"
content="Ready-to-use beautiful tech stack icon components for developers"
Expand All @@ -41,10 +42,9 @@ flattenedDocs.sort((a, b) => a.frontmatter.order - b.frontmatter.order);
type="image/svg+xml"
href={`${publicBaseUrl}/favicon.svg`}
/>
<link rel="sitemap" href={`${publicBaseUrl}/sitemap-index.xml`} />
<meta name="generator" content={Astro.generator} />

<title>{props.frontmatter.title}</title>

<!-- Google tag (gtag.js) -->
<script
type="text/partytown"
Expand Down
3 changes: 2 additions & 1 deletion docs/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const measurementId = import.meta.env.PUBLIC_GA_MEASUREMENT_ID;
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>{title}</title>
<meta
name="description"
content="Ready-to-use beautiful tech stack icon components for developers"
Expand All @@ -27,8 +28,8 @@ const measurementId = import.meta.env.PUBLIC_GA_MEASUREMENT_ID;
type="image/svg+xml"
href={`${publicBaseUrl}/favicon.svg`}
/>
<link rel="sitemap" href={`${publicBaseUrl}/sitemap-index.xml`} />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>

<!-- Google tag (gtag.js) -->
<script
Expand Down

0 comments on commit a28423a

Please sign in to comment.