From 400cb3203f04575037b4b4f4f12c808331e8a380 Mon Sep 17 00:00:00 2001 From: John Costa Date: Sat, 20 Aug 2022 16:21:12 +0100 Subject: [PATCH] very simple blog page --- src/pages/blog.astro | 17 +++++++++-------- src/pages/posts/hello-world.md | 2 ++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/pages/blog.astro b/src/pages/blog.astro index 30e8225..9375e45 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -6,14 +6,15 @@ console.log(posts[0].url); Blog - -
- {posts.map((post) => { - console.log(post.frontmatter); - return ( -

{post.frontmatter.title}

- Read - )})} + + diff --git a/src/pages/posts/hello-world.md b/src/pages/posts/hello-world.md index 5447e1e..e4a76b9 100644 --- a/src/pages/posts/hello-world.md +++ b/src/pages/posts/hello-world.md @@ -1,6 +1,8 @@ --- layout: '../../layouts/lay.astro' title: 'Hello World' +description: 'This is a hello world post' +date: '20/08/2022' --- # Hello World