diff --git a/astro.config.mjs b/astro.config.mjs index 341deaa..fe28082 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -22,7 +22,17 @@ export default defineConfig({ syntaxHighlight: false, rehypePlugins: [rehypeSlug, [rehypePrettyCode, { theme: "github-dark" }]], }), - sitemap(), + sitemap({ + i18n: { + defaultLocale: "en", + locales: { + en: "en-US", + de: "de-DE", + cs: "cs-CZ", + fr: "fr-FR" + } + } + }), react(), ], i18n: { diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..29ed174 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://cyrilsebek.cz/sitemap-index.xml \ No newline at end of file diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index 3f70eb0..7443aab 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -13,6 +13,7 @@ const t = useTranslations(lang) +