Skip to content

Commit b98ec2a

Browse files
committed
[site] added sitemap
1 parent cec3ecb commit b98ec2a

File tree

4 files changed

+63
-1
lines changed

4 files changed

+63
-1
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import react from "@astrojs/react";
2+
import sitemap from "@astrojs/sitemap";
23
import icon from "astro-icon";
34
import { defineConfig } from "astro/config";
45
import redirects from "./redirects";
56

67
// https://astro.build/config
78
export default defineConfig({
9+
site: "https://gephi.org",
810
output: "static",
9-
integrations: [icon(), react()],
11+
integrations: [icon(), react(), sitemap()],
1012
i18n: {
1113
// to add a locales just translate one page by using `{countrycode2}.astro` as filename
1214
locales: ["en"],

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@astrojs/check": "^0.9.4",
1414
"@astrojs/markdown-remark": "^6.3.7",
1515
"@astrojs/react": "^4.4.0",
16+
"@astrojs/sitemap": "^3.6.0",
1617
"@cospired/i18n-iso-languages": "^4.2.0",
1718
"@iconify-json/bi": "^1.2.6",
1819
"@iconify-json/ph": "^1.2.2",

src/layouts/Layout.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const appPages = [
4141
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
4242
<meta name="apple-mobile-web-app-title" content="MyWebSite" />
4343
<link rel="manifest" href="/site.webmanifest" />
44+
<link rel="sitemap" href="/sitemap-index.xml" />
4445
<meta
4546
name="description"
4647
content="Gephi is the leading visualization and exploration software for all kinds of graphs and networks. Gephi is open-source and free."

0 commit comments

Comments
 (0)