From e54368a1c5f264548f2c54003140df45d148b6fa Mon Sep 17 00:00:00 2001 From: Stefan Seeland <168659+stesee@users.noreply.github.com> Date: Sat, 24 Oct 2026 22:08:18 +0200 Subject: [PATCH] Emit trailing-slash URLs and a real homepage description GitHub Pages serves every page as a directory and 301-redirects /blog/post to /blog/post/. Without trailingSlash the sitemap and canonical links used the slash-less form, so each sitemap entry and each canonical pointed at a redirect. trailingSlash: true makes links, canonicals and sitemap use the final URL. The homepage still had the Docusaurus template placeholder as its meta description. Co-Authored-By: Claude Opus 5.5 (1M context) --- docusaurus.config.ts | 3 +++ src/pages/index.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 (