Added robots.txt and modified sitemap.xml generation
This commit is contained in:
parent
c9c156bd33
commit
9a84d9acbb
@ -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: {
|
||||
|
4
public/robots.txt
Normal file
4
public/robots.txt
Normal file
@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://cyrilsebek.cz/sitemap-index.xml
|
@ -13,6 +13,7 @@ const t = useTranslations(lang)
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<meta name="description" content={description} />
|
||||
<meta name="author" content="Cyril Šebek" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
|
Loading…
Reference in New Issue
Block a user