Skip to content

Commit

Permalink
Add sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
KabanFriends committed Apr 30, 2024
1 parent 2f5683b commit c83cd1d
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 2 deletions.
14 changes: 12 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import { defineConfig } from 'astro/config';
import compress from "astro-compress";

import mdx from "@astrojs/mdx";

import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
site: 'https://kabanfriends.github.io',
integrations: [compress(), mdx()]
integrations: [
compress(),
mdx(),
sitemap({
filter: (page) =>
!page.startsWith("https://kabanfriends.github.io/skin") &&
!page.startsWith("https://kabanfriends.github.io/test") &&
!page.startsWith("https://kabanfriends.github.io/mildescape/escape")
})
]
});
52 changes: 52 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 @@ -11,6 +11,7 @@
},
"dependencies": {
"@astrojs/mdx": "^1.1.5",
"@astrojs/sitemap": "^3.1.4",
"astro": "^3.3.2",
"astro-compress": "^2.0.15"
}
Expand Down

0 comments on commit c83cd1d

Please sign in to comment.