Skip to content

Commit 4f52dbf

Browse files
DAEKYU YOONDAEKYU YOON
authored andcommitted
Normalize sitemap URLs and add robots sitemap hint
1 parent 3333a4a commit 4f52dbf

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const base = isGithubActions ? (isUserSite ? '/' : `/${repository}`) : '/';
1111
export default defineConfig({
1212
site: `https://${owner}.github.io`,
1313
base,
14+
trailingSlash: 'always',
1415
integrations: [
1516
starlight({
1617
plugins: [pagePlugin()],

public/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
Allow: /
3+
Sitemap: https://grqtm.github.io/Astrophysics-Simulation-Code-Introduction/sitemap-index.xml

0 commit comments

Comments
 (0)