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 - )})} + +
+ {posts.map((post) => ( + +

{post.frontmatter.title}

+

{post.frontmatter.description}

+

{post.frontmatter.date}

+
+ ))}
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