Skip to content

Commit

Permalink
Fix sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Jul 16, 2023
1 parent f5f9470 commit 85aef46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/blog/feed.xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ export const get = () =>
} (${import.meta.env.PUBLIC_AUTHOR_NAME})</managingEditor>
<webMaster>${import.meta.env.PUBLIC_AUTHOR_EMAIL} (${
import.meta.env.PUBLIC_AUTHOR_NAME
})</webMaster>`
})</webMaster>`,
trailingSlash: false
});
2 changes: 1 addition & 1 deletion src/pages/robots.txt.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export async function get() {
return {
body: `User-agent: *
Sitemap: ${import.meta.env.SITE}sitemap-index.xml
Sitemap: ${import.meta.env.SITE}/sitemap-index.xml
`
};
}

0 comments on commit 85aef46

Please sign in to comment.