diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 81ff1cc..347a7e1 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -12,6 +12,9 @@ const config: Config = { // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', + // GitHub Pages redirects /blog/post to /blog/post/, so emit the slash form in links, + // canonicals and the sitemap - otherwise every sitemap entry is a 301. + trailingSlash: true, // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 39eca08..09b8704 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -35,7 +35,7 @@ export default function Home(): JSX.Element { return (