diff --git a/src/components/Posts.astro b/src/components/Posts.astro new file mode 100644 index 0000000..5408607 --- /dev/null +++ b/src/components/Posts.astro @@ -0,0 +1,20 @@ +--- +import Card from "./Card.astro"; +import type { AstroInstance } from "astro"; + +export interface Props { + posts: AstroInstance[]; + title: string; +} +const { title, posts } = Astro.props; +const postUrls: string[] = posts.map((post) => post.url || ""); +--- + +

{title}

+{ + postUrls + .filter((url) => url !== "") + .map((url) => ( + + )) +} diff --git a/src/layouts/Post.astro b/src/layouts/Post.astro new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/index.astro b/src/pages/index.astro index 2954999..2e7330c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -24,28 +24,29 @@ import Footer from "../components/Footer.astro";
    + + - - +
diff --git a/src/pages/now/and-then/09-20-2022.astro b/src/pages/now/and-then/09-20-2022.astro new file mode 100644 index 0000000..e2c3a6f --- /dev/null +++ b/src/pages/now/and-then/09-20-2022.astro @@ -0,0 +1,74 @@ +--- +import Layout from "../../../layouts/Layout.astro"; +import Footer from "../../../components/Footer.astro"; +import Back from "../../../components/Back.astro"; +--- + + +
+ +

Sep. 20, 2022

+

+ This year (2022) I have moved to The Netherlands with my family; + specifically to the northern area of Amsterdam. +

+

+ For work, I'm busy being a consultant, doing mostly frontend development. +

+

+ If I'm not working, I am playing games on Xbox with my kid, Kahel, or most + probably trying to annoy my wife, Jen, with silly jokes. +

+

+ I have also found a renewed joy in exploring opensource projects in my + spare time. +

+
+
+
+ + diff --git a/src/pages/now.astro b/src/pages/now/index.astro similarity index 84% rename from src/pages/now.astro rename to src/pages/now/index.astro index 2adafc1..462a209 100644 --- a/src/pages/now.astro +++ b/src/pages/now/index.astro @@ -1,7 +1,10 @@ --- -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"; +import Posts from "../../components/Posts.astro"; + +const posts = await Astro.glob("./and-then/*.astro"); --- @@ -24,6 +27,9 @@ import Back from "../components/Back.astro"; I have also found a renewed joy in exploring opensource projects in my spare time.

+ + +
About now pages