Skip to content

Commit

Permalink
Add sitemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
JortWillemsen committed Mar 14, 2024
1 parent d718afc commit bc9510a
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 7 deletions.
10 changes: 7 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import react from "@astrojs/react";
import mdx from "@astrojs/mdx";
import vercel from '@astrojs/vercel/serverless';

import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
integrations: [react(), mdx()],
integrations: [react(), mdx(), sitemap()],
site: "https://www.tungstun.nl",
output: 'hybrid',
adapter: vercel({
webAnalytics: { enabled: true }
}),
webAnalytics: {
enabled: true
}
})
});
64 changes: 64 additions & 0 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"@astrojs/mdx": "2.1.1",
"@astrojs/react": "^1.2.2",
"@astrojs/sitemap": "^3.1.1",
"@astrojs/vercel": "7.3.3",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
Expand Down
3 changes: 2 additions & 1 deletion src/layouts/ProjectLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ const { frontmatter } = Astro.props;
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="stylesheet" href="https://use.typekit.net/zil5gof.css" />
<link rel="stylesheet" href="/styles/global.css" />
<link rel="sitemap" href="/sitemap-index.xml" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Tungstun</title>
<title>Tungstun | {frontmatter.title}</title>
<ViewTransitions />
</head>
<body>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ import SpeedInsights from "@vercel/speed-insights/astro"
}}
/>
<meta charset="utf-8" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="stylesheet" href="https://use.typekit.net/zil5gof.css" />
<link rel="stylesheet" href="/styles/global.css" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Tungstun</title>
<title>Tungstun | About</title>
</head>
<body>
<SpeedInsights />
Expand Down
3 changes: 2 additions & 1 deletion src/pages/contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ import SpeedInsights from "@vercel/speed-insights/astro"
}}
/>
<meta charset="utf-8" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="stylesheet" href="https://use.typekit.net/zil5gof.css" />
<link rel="stylesheet" href="/styles/global.css" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Tungstun</title>
<title>Tungstun | Contact</title>
</head>
<body>
<SpeedInsights />
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import SpeedInsights from "@vercel/speed-insights/astro"
}}
/>
<meta charset="utf-8" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="stylesheet" href="https://use.typekit.net/zil5gof.css" />
<link rel="stylesheet" href="/styles/global.css" />
Expand Down
3 changes: 2 additions & 1 deletion src/pages/projects/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ const allProjects = await getCollection("projects");
description="All projects that Tungstun worked on, from logos to websites."
openGraph={{
basic: {
title: "Projects | Tungstun",
title: "Tungstun | Projects",
type: "article",
image: "/assets/tungstun-icon-white.png",
},
}}
/>
<meta charset="utf-8" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="stylesheet" href="https://use.typekit.net/zil5gof.css" />
<link rel="stylesheet" href="/styles/global.css" />
Expand Down

0 comments on commit bc9510a

Please sign in to comment.