Skip to content

Commit

Permalink
English page at root path
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtaStruhar committed Jan 8, 2025
1 parent 8fa6c4b commit 6d02501
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 1 addition & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export default defineConfig({
i18n: {
defaultLocale: "en",
locales: ["en", "es"],
routing: {
prefixDefaultLocale: true
}

}
});
10 changes: 10 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
import EnglishPage from "./en/index.astro";
/**
* This page is duplicated for SEO. It's better when
* the root path isn't a redirect :)
*/
---

<EnglishPage />

0 comments on commit 6d02501

Please sign in to comment.