diff --git a/src/components/Back.astro b/src/components/Back.astro index 4a8281c..407b737 100644 --- a/src/components/Back.astro +++ b/src/components/Back.astro @@ -1,11 +1,12 @@ --- export interface Props { url: string; + text?: string; } -const { url } = Astro.props; +const { text = "Back", url } = Astro.props; --- - + diff --git a/src/pages/now/and-then/09-20-2022.astro b/src/pages/now/and-then/posts/09-20-2022.astro similarity index 91% rename from src/pages/now/and-then/09-20-2022.astro rename to src/pages/now/and-then/posts/09-20-2022.astro index 44b6a50..4d47555 100644 --- a/src/pages/now/and-then/09-20-2022.astro +++ b/src/pages/now/and-then/posts/09-20-2022.astro @@ -1,7 +1,7 @@ --- -import Layout from "../../../layouts/Layout.astro"; -import Footer from "../../../components/Footer.astro"; -import Back from "../../../components/Back.astro"; +import Layout from "../../../../layouts/Layout.astro"; +import Footer from "../../../../components/Footer.astro"; +import Back from "../../../../components/Back.astro"; const title = "Settling in The Netherlands"; const description = "This year (2022) I have moved to The Netherlands with my family; specifically to the northern area of Amsterdam."; diff --git a/src/pages/now/index.astro b/src/pages/now/index.astro index 7afe460..3ded66d 100644 --- a/src/pages/now/index.astro +++ b/src/pages/now/index.astro @@ -4,7 +4,7 @@ import Footer from "../../components/Footer.astro"; import Back from "../../components/Back.astro"; import Posts from "../../components/Posts.astro"; -const posts = await Astro.glob("./and-then/*.astro"); +const posts = await Astro.glob("./and-then/posts/*.astro"); ---