From fdb0f25e5489913b157b525d4e11d0449d782183 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Tue, 31 Dec 2024 01:00:28 +0100 Subject: [PATCH] feat: add posts --- src/pages/blog.astro | 6 ++++++ src/pages/posts/post-1.md | 33 +++++++++++++++++++++++++++++++++ src/pages/posts/post-2.md | 13 +++++++++++++ src/pages/posts/post-3.md | 13 +++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 src/pages/posts/post-1.md create mode 100644 src/pages/posts/post-2.md create mode 100644 src/pages/posts/post-3.md diff --git a/src/pages/blog.astro b/src/pages/blog.astro index a4ec85f..f294ac6 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -19,5 +19,11 @@

Blog posts

This is a list of my blog posts.

+ + diff --git a/src/pages/posts/post-1.md b/src/pages/posts/post-1.md new file mode 100644 index 0000000..d4480bf --- /dev/null +++ b/src/pages/posts/post-1.md @@ -0,0 +1,33 @@ +--- +title: My first blog post +description: This is my first blog post +date: 2024-12-30 +author: Ruidy +image: + url: "https://docs.astro.build/assets/rose.webp" + alt: "The Astro logo on a dark background with a pink glow." +tags: + - astro + - blog +--- + +# My First Blog Post + +Published on: 2022-07-01 + +Welcome to my _new blog_ about learning Astro! Here, I will share my learning journey +as I build a new website. + +## What I've accomplished + +1. **Installing Astro**: First, I created a new Astro project and set up my online + accounts. +2. **Making Pages**: I then learned how to make pages by creating new `.astro` files + and placing them in the `src/pages/` folder. +3. **Making Blog Posts**: This is my first blog post! I now have Astro pages and + Markdown posts! + +## What's next + +I will finish the Astro tutorial, and then keep adding more posts. Watch this space +for more to come. diff --git a/src/pages/posts/post-2.md b/src/pages/posts/post-2.md new file mode 100644 index 0000000..8309c9e --- /dev/null +++ b/src/pages/posts/post-2.md @@ -0,0 +1,13 @@ +--- +title: My Second Blog Post +author: Astro Learner +description: "After learning some Astro, I couldn't stop!" +image: + url: "https://docs.astro.build/assets/arc.webp" + alt: "The Astro logo on a dark background with a purple gradient arc." +pubDate: 2022-07-08 +tags: ["astro", "blogging", "learning in public", "successes"] +--- + +After a successful first week learning Astro, I decided to try some more. I wrote +and imported a small component from memory! diff --git a/src/pages/posts/post-3.md b/src/pages/posts/post-3.md new file mode 100644 index 0000000..1e7eddf --- /dev/null +++ b/src/pages/posts/post-3.md @@ -0,0 +1,13 @@ +--- +title: My Third Blog Post +author: Astro Learner +description: "I had some challenges, but asking in the community really helped!" +image: + url: "https://docs.astro.build/assets/rays.webp" + alt: "The Astro logo on a dark background with rainbow rays." +pubDate: 2022-07-15 +tags: ["astro", "learning in public", "setbacks", "community"] +--- + +It wasn't always smooth sailing, but I'm enjoying building with Astro. And, the +[Discord community](https://astro.build/chat) is really friendly and helpful!