Adjust sitemap locale settings and meta tags formatting in astro.config
This commit is contained in:
parent
b817b83219
commit
3554489b60
1 changed files with 17 additions and 3 deletions
|
@ -25,7 +25,15 @@ export default defineConfig({
|
||||||
prefetch: true,
|
prefetch: true,
|
||||||
integrations: [
|
integrations: [
|
||||||
tailwind(),
|
tailwind(),
|
||||||
sitemap(),
|
sitemap({
|
||||||
|
i18n: {
|
||||||
|
defaultLocale: "en", // All urls that don't contain `fr` after `https://screwfast.uk/` will be treated as default locale, i.e. `en`
|
||||||
|
locales: {
|
||||||
|
en: "en-US", // The `defaultLocale` value must present in `locales` keys
|
||||||
|
fr: "fr-CA",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
starlight({
|
starlight({
|
||||||
title: "ScrewFast Docs",
|
title: "ScrewFast Docs",
|
||||||
defaultLocale: "root",
|
defaultLocale: "root",
|
||||||
|
@ -84,11 +92,17 @@ export default defineConfig({
|
||||||
head: [
|
head: [
|
||||||
{
|
{
|
||||||
tag: "meta",
|
tag: "meta",
|
||||||
attrs: { property: "og:image", content: "https://screwfast.uk" + "/social.webp" },
|
attrs: {
|
||||||
|
property: "og:image",
|
||||||
|
content: "https://screwfast.uk" + "/social.webp",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tag: "meta",
|
tag: "meta",
|
||||||
attrs: { property: "twitter:image", content: "https://screwfast.uk" + "/social.webp" },
|
attrs: {
|
||||||
|
property: "twitter:image",
|
||||||
|
content: "https://screwfast.uk" + "/social.webp",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue