Summary (required)
This commit is contained in:
16
src/pages/[lang]/about/index.astro
Normal file
16
src/pages/[lang]/about/index.astro
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import MainLayout from "../../../layouts/MainLayout.astro";
|
||||
|
||||
//@ts-ignore
|
||||
import { dictionary } from "../../../i18n/dictionary";
|
||||
const { title, description } = dictionary[Astro.currentLocale];
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return ["en", "fr", "cs", "de"].map((lang) => {
|
||||
return { params: { lang } };
|
||||
});
|
||||
}
|
||||
---
|
||||
<MainLayout title={title} description={description} lang={Astro.currentLocale}>
|
||||
|
||||
</MainLayout>
|
16
src/pages/[lang]/blog/index.astro
Normal file
16
src/pages/[lang]/blog/index.astro
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import MainLayout from "../../../layouts/MainLayout.astro";
|
||||
|
||||
//@ts-ignore
|
||||
import { dictionary } from "../../../i18n/dictionary";
|
||||
const { title, description } = dictionary[Astro.currentLocale];
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return ["en", "fr", "cs", "de"].map((lang) => {
|
||||
return { params: { lang } };
|
||||
});
|
||||
}
|
||||
---
|
||||
<MainLayout title={title} description={description} lang={Astro.currentLocale}>
|
||||
|
||||
</MainLayout>
|
@@ -1,8 +1,9 @@
|
||||
---
|
||||
import { getLocaleByPath } from "astro:i18n";
|
||||
import MainLayout from "../../layouts/MainLayout.astro";
|
||||
|
||||
//@ts-ignore
|
||||
import { dictionary } from "../../i18n/dictionary";
|
||||
const { title } = dictionary[Astro.currentLocale];
|
||||
const { title, description } = dictionary[Astro.currentLocale];
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return ["en", "fr", "cs", "de"].map((lang) => {
|
||||
@@ -10,10 +11,6 @@ export async function getStaticPaths() {
|
||||
});
|
||||
}
|
||||
---
|
||||
<MainLayout title={title} description={description} lang={Astro.currentLocale}>
|
||||
|
||||
<MainLayout title={title} description="sitedescription" lang={Astro.currentLocale}>
|
||||
<h1>Welcome</h1>
|
||||
<p>
|
||||
{Astro.url.toString()}
|
||||
</p>
|
||||
</MainLayout>
|
Reference in New Issue
Block a user