Imagine walking into IKEA, but there are no signs hanging from the ceiling. There's no arrows on the floor, no sections, no labels, nothing. That's basically what your website feels like without archive pages. Those are the pages that list and organize your posts so people can actually browse your content by topic, category or date. It's like reading a Where's Waldo book, but there's no Waldo. Stuff exists, but nobody can find anything.
So in this video, I'm going to show you how to build archive pages for an Astro website using AI, with zero coding knowledge required. These archive pages are going to make your website way easier to navigate. It's going to help visitors discover more content, improve internal linking, and help Google actually understand the structure of your website instead of just wandering around confused.
Basically, better user experience, better SEO, more Google Juice, more crawling, more indexing, and hopefully more rankings. Before I build the archive pages, I want to quickly explain the options for building them, why I chose the one I did, and why it's important for my overall SEO strategy. On this agency website. I already have individual posts, but I also need pages where people can browse those groups of posts. The main archive, the slug, is just slash posts. That is mostly a user experience page, and it gives visitors a great place to browse the full content library instead of just finding articles through navigation in the header or internal links.
And then I need content silo archive pages for topics like electrician websites, SEO for electricians, and electrician marketing. Those are my categories. These pages help users because they group the related articles together, but they also have a bigger SEO purpose. So long term, I want each silo page to become a serious ranking page for its main keyword. So the electrician websites page should not just list posts about the electrician websites. Eventually. It should be able to compete for the keyword electrician websites.
That means I do not want to lock in every silo into the same generic archive template forever. So one silo page might need examples. Another might need pricing and another might need FAQs, screenshots, comparisons, service copy, or a stronger conversion section.
In Astro, these pages are not created automatically, like WordPress category archives. Astro gives me the building blocks, like content collections, routing, dynamic routes, and post queries. So I have to create the archive behavior by myself. There are 2 ways that I could do that. So option one is dedicated Astro pages for each silo. That means pages like slash electrician websites slash SEO for electricians and slash electrician marketing. Each page can query the post collection and show the post for that silo.
Option 2 is a silo content throughout option 2 is a silo content collection with one shared dynamic route, like a template and Bricks Builder. That would make the silo pages more content driven, but it also means they all follow the same general structure unless I add more complexity later. And for SEO, option 2 is not automatically better. Google does not care whether the page came from an Astro file, an MDX file or a content collection.
Google only sees the final HTML. So for this build, I'm choosing option one. So the model is a custom page first, dynamic, post archive inside it. From now, excuse me, for now, the pages can stay simple, but that gives me room to turn each silo into a custom SEO landing page. So for right now, since I don't have a lot of content, the structure can stay simple, but that also gives me the room to make each page customized for SEO later without fighting against a shared template.
So in this video, I'm building the archive pages for slash posts, electrician websites, SEO for electricians, and electrician marketing. I'll use reusable pieces like an archive hero, post card, archive CTA card, and pagination. The SEO metadata will live at the page level, right? Not inside a hero component. So the post-featured images will show on the post cards and the archive pages can actually have their own images later too. So here we are inside of VS Code. 1st thing you want to do is make sure that you're in the correct directory.
Make sure you're open. you have your website's folder open. And then after that, what we're gonna do is similar to befores, we're gonna go ahead and get into plan mode. And in order to do that. You just have to put backslash then plan and start that up so you can see that says plan down here.
Okay. You can choose your reasoning level. And if you have any files open, you might want to close those because if you have the IDE context, selected, then those files would all be put into the prompt. So then we're gonna go ahead and paste our initial prompt that we have available on the website for you. And it's the idea is to create a main posts archive page.
Okay. So it's basically going to inspect the project and the layouts. any metadata patterns that we have. So we can control the SEO data. And we're going to sort the posts by published date or any other related date that we have set up. Oh, and here it's going to query all entries from the posts, okay? Since we have the 3 content silo those, this page is specifically for all posts. So I'll go ahead and get that at the SEO metadata. we're gonna keep it simple for right now because right now we're just, setting up the skeleton in the placeholders.
We're going to style it and all that later. And yep, we do, we want to explicitly tell it not to create the silo archives yet. Yeah, so do not invent a new design system or components. So, yeah, which let it go. Start planning. All right, it works for 18 seconds and we now have a plan. So create posts, a simple Astro Archive page that follows the existing page pattern, based layout, page hero, all that kind of stuff, creates a page, and it's just going to test it out. So do I want to implement this plan? I say yes, let it go.
You may want to change the reasoning level once you start the actual coding. I didn't think about that yet. And then change that 2 may be like high or very high. Okay, we have it set up. Now let's go ahead and just take a look and, see if we can get to the actual page itself. Can you please start up a local server and then give me the URL to see this page. I read an article about how people say, please too much to the LLMs when they don't, they don't, it doesn't matter to them. I don't know if it's true or not.
I don't know if it changes the results. Okay, so here we are. Let's go and take a look. I like to take a look at it inside of Chrome itself. Okay, so here we go. We have a page and it looks very similar to the skeleton style of others. We click one. It goes on over.
Okay, that looks like a success. So we'll go ahead and move on to the next part of our plan. But first, let's go ahead and start getting in the habit of making commits. Okay. So I actually like to, I like to just tell, Codex, to make the commit for me, because it writes a relevant comment, and I don't have to think about it, and it just works easy. Can you go ahead and make a commit for this to get?
All right, it worked. Okay, so what we're going to do now is move on to creating the hero for the archive page, and I'm not going to clear the context here because we're still working on the same page. So this context, I think, is useful. And then what we're going to do is go back into plan mode, back into plan mode, and did it take? So we're back into plan mode, and I want to paste in the prompt. So create a reusable archive hero component for the post-archive page in this Astro project based on the post-content collection layout.
And then I gave the path. So if you if you are following along and you made your own page, you can go over here and then right click on the page that we worked on, like in last video, and then you can click copy path or copy relative path, and then you can paste it into here. So we have that, and I want the style along with the homepages style. So there's a unified style across the website.
Okay. So, yeah, the idea is just to let the, let the model do its, its, its own design work to see if it can come up with something that looks good and unified since we already have something to work off of, right? And then if it doesn't, I'll just go back to the method of going to find inspiration online and then pasting it in here. Another thing I'm going to do is actually, since we're going off of this page as a design kind of template or reference, I'm going to open up this file, and then I'm going to click on the IDE, oops, context.
Okay. I want to make sure that the IDE context is there and available so that way it can take inspiration from there. So then we'll go ahead and clicks in. So now it's going to start planning. So it looks like it's going to create a new component instead of using the other one from the post from the page.
All right, it is done. I'm going to take 31 seconds. Let's see what we got. Create a new archive hero component rather than adapting the page hero. Patio is intentionally minimal for simple pages. Okay, excellent. So we have a new component, got a title on intro, an eyebrow. I think we've been getting rid of that, but we'll take a look at it when it gets produced, and image.
Okay. And it's going to replace the current page hero with this new one. Okay, so we'll go ahead and let it implement this plan. Okay, it took one minute and 56 seconds. Let's go see what it looks like. So I'm not a big fan of it. It does look like the homepages style, doesn't it? Looks like the homepage, so that was probably our issue.
All right, I'm just going to try to use inspiration from the stuff that we already built and make an archive page that way instead of finding stuff from outside sources. So I'm going to turn on dictation here and then give it a try. For it says explore topics.
I want you to have just all currently available topics for the entire website, just available there and make them a slider like scrollable. And I guess the way you can do that. is just, I think we have some other mechanism on the website, some arrows that, yeah, use that same styling. or something similar. So people can scroll through the topics in that bottom. And where it says you are here, I want you to take that portion out and replace it with something that looks almost exactly like the explore topics part, except for this one is going to say, maybe explore, or no.
Maybe it can just say post categories. And then you'll have, one is for each content side that we have. And it will be the same styling as the buttons for explore topics. So to reiterate what that is, is that at the very top we're going to have posts and then under that we have the component for exploring the categories and topics. So if you have any questions, go ahead and ask. If not, you can get to work.
All right, it works for 4 minutes and 21 seconds. Let's take a look. All right. This is what we have. And it's a little bit too like, okay, let's give it some more feedback. I don't really like the arrows you have. On the right side. Instead, I like the little dots that you click on the dots, the little dots as the slider.
You can reduce the amount of space between they were supposed to categorize every time. And also, where you get, it's a nice make buttons or they stand out a little bit, because right now they're just not generic. They just look like labels, not buttons. So make up more clickable, I guess. I don't know how to say it. I do that.
And then instead of posts, have it say all posts at the very top and... Yeah, just reduce the overall height of this card and make the start of the cards, the post cards themselves, where it says a practical website content plan for electricians. bring that up a little bit because we want the user to be able to start looking at and scrolling through posts before they have to scroll too far down the page. So take that feedback and make it better. writing versus deleting is like a lottery or something down here.
All right. It worked for 2 minutes and 22 seconds. Let's take a look. Actually, I don't need the pagination below the postcategory, so there's only three. All right, I'll let that beef right now and then as we get more topics, I might come back and change that. It's a little bit closer. Seems like we have double lines right here. Get rid of this 2nd line and then I think it's like a pretty decent. The buttons still look, you know, pretty average. Let's try one more time. Can you make the pagination only be for explore topics?
Because we don't post categories, also. So, traditional questions, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, I, Interesting. Yeah try one more time. Yeah, make sure, yeah, make sure the Pagination UI little thing is a little bit farther away from the buttons as well. I think I should move this back to medium, since we're doing small edits. See what it looks like. Works for 44 seconds.
Okay, that's gone and still look the same. Buttons still look the same. And then also you can see there's some kind of shadow, electrician websites to the electrician, this like that window like shadow. I mean, they're gonna have to do shadow shadows. I'll give you a screenshot chat. Also, give a little bit more space between the post category buttons and that line and the, you have a little bit more space there. And there's also a line above the post cards. There's 2 lines, but there's one that goes across the full entire width of the screen, which is good.
I want to keep that. And then there's one more line that just is the width of the post cards columns. I want you to get rid of that line. 22 seconds later. Ooh, way overstyle. What I want you to do is remove the it's too strong. Oh, just get rid of that and call it a day. Is it gone? 2nd slider and that part's good.
All right, I think I'm satisfied with the hero because we want, I do like images, but it's going to take up too much space and it's nice that they can just click and do this navigation. So yeah, I think I'm think I'm satisfied for that. Simple. So we'll move on to the next part. So the next thing we're going to do is work on these post cards themselves.
Okay. And I have a prompt ready for you, which I'll paste right here into VS Code. But 1st we want to make sure we have the plan mode enabled. So we got plan mode, right? And here is our prompt. So create or update an archive specific post card component for posts for the AstroContent collection.
Okay. So then I basically tell it to you, go ahead and inspect the project and don't get confused with other related post cards inside of this website. That's the bottom line there. And I want to do something like I did in the last section is that I want to make it follow the same style as other parts of the website. So I'm going to add something right here. And if you want, you could go, as you should, you should go ahead and adjust these prompts to your own project and to your own website so that, you get the result that you'd like.
So I'm going to go ahead and do that now. I want the post card to look similar in style to the related posts, cards from the the X article content sample, related postponement, different stuff, though, that I want. Car, car, car, car exists, archive, HBV, expend the width.
I want it to extend the width of the current column that it has right now. So I want it to be the same width as the current post cards. And you can have the image on the left, but yeah, otherwise follow a similar style, and I'll upload the image as well. I did not say that too eloquent, eloquently. We got it done, so and we're in plan mode, we'll let it go, but saying it's going to create a new component, as it should, for the post card. Yes, implement this plan and make sure to look at the screenshot from the last message since I can't upload the new screenshot in this mode.
Oh, it was already there. Pressed paced twice. So it got uploaded twice, but I couldn't see it because of the implement question, the plan mode question. I forgot to do the archive, you're out changes, commit those. It's not telling me the work trees dirty again.
All right, it works for 2 minutes and 32 seconds. Let's see what the result is. Okay, pretty nice, except for I want it to be way thinner because we can only see this one. You can only see a half of one. can only see one card before the fold. It looks great except for it's way too tall. We want it much shorter, so that way we can see more posts quicker, if that makes sense. I keep them horizontal looks better. See how it turns out. 2 minutes and 40 seconds. I thought that was going to be like a 32nd. I guess I had to adjust other things for responsiveness.
So let's see how it did. It's still way too tall. Is this it? Let me try to refresh. Yeah, it's still way too tall. Let me give it a screenshot. As you can see from the screenshot. I just gave you that the cards are still way too tall. So, yeah, I make them much shorter so you can see all the white space between excerpts, right? Let's try GPT 53 Kodath Park. So this is supposed to be ultra fast. Why doesn't like that? Or cannot doesn't allow for images. So I guess we'll just keep it at 55.
All right, it works for a minute and 39 seconds. It's looking pretty good. I think I will let it be and we'll move on to the next part. Next thing that we're gonna do is we're going to add a call to action in the middle of these posts. So in the middle of the post query. And the way we're going to do it is that we're going to make the call to action look exactly like a blog post. So if someone clicks on it, it's not going to take them to a blog post. It's gonna take them to the contact page. a form to fill out, a pop-up, something like that.
So the idea is just to get a couple more clicks by making it blend in, like camouflage or something. I think I saw this strategy from Neil Patel or Backlinko or something like that. So, we can try it out and if it works, we'll keep it. If not then we can get rid of it. So we'll go back over to VS Code and I cleared the context because I was getting quite full after all the stuff we've already done. Put it into plan mode for the slash plan and then add the prompt. So I'm going to create a reusable archive CTA card component and add simple CTA insertion support.
So basically that means you'll be able to you'll be able to change the text on the call to action itself, like the link, the text on the button or the component. that way you can change it. And yep, it's going to be used in the posts archive page. So, you can go ahead and read it as it's available to you. And we'll let it get going. Which default CTA content should the plan use for the archive card? We should use archive be archive specific, right? That way it blends in better. do it after 3 polls. Sounds good.
At a reusable archive, CTA card component. I choose yes to implement the plan. It chose the intro call, the call to action. All right, it works for 2 minutes and 36 seconds. Let's take a look. There it is. So it did not turn out as expected. So I want the call to action card to literally look exactly the same as the most conferences that this is the assistance called the action one and one that I got changed to, and title, and text two. So, for example, I can actually change the post type to something else, and then I would change very importantly, correctly, how to action.
That makes sense. So I want you to make it literally exactly like the Swift's card. But again, the inside there is variable. I'll give you a screenshot as well. The screenshot shows above what the call to action should look like, and card below in the screenshot is what it currently looks like. So fix that, please.
All right, it works for 3 minutes and 14 seconds, and it's looking good. I guess the only thing we have to change is this call to action. Can you remove the that call to action next after assistant call to action? It's good. All right, works for 41 seconds. It is gone. And I think it looks good now. It blends right in. Oh, that's text that goes over there. So let's make sure this is an image. On the left side, it says, look on intro call. So then, just like the post card. So for right now, now you put the... You know, that we already, already one of the images that we have.
All right. It's all finished. There we go. Everything looks exactly the same now. We are good to go. So move on to the next part. Go ahead and add pagination to this archive. Obviously I don't have enough posts for it yet. But we'll just set the architecture there. So when I do, it's ready and good to go. So go back to VS Code. I'm going to clear the context and we'll go into plan mode, paste the prompt. Go ahead and check it out there if you want, but nothing special. I'm sure you can come up with something. I says, how many posts should appear per archive page?
So let's take a look at it. One, two, three, four, five, six, 6 enough? We're going a little bit more. I feel like more is better. Go with nine. Page, pagination navigation should the component render, versus and previous next, do the recommended. So Astro doesn't have category pages and taxonomy like this out of the box. So these type of things are something that you have to build. Well, AI will build for you when you ask. So here's the plan. I'm going to go ahead and accept it. I'll have to go back through and then make sure the SEO for the pages is good.
All right, it worked 3 minutes and 14 seconds. It's a small note. The work tree already had on track to archive card component files. Okay, yep, I still need to put a commit. So let's see if there's anything over there. Currently there's nothing. Can you go ahead and create some maybe like 5 or 10 fake posts. That way I can test them. Looks like it's all in there. 2 minutes, 22 seconds. Let's take a look. Here they are.
Okay. The TO, the active page and TO was a little bit straight, less bold. I only started watching TD. Categories and a class I see themes. All right. take a look. Yeah this is a little bit nicer. Okay, I'm satisfied. And we'll delete these fake posts. Move on to the next part. Remember that we have 3 different content silos right here as listed as post categories. Here, electrician websites, SEO for electricians and electrician marketing. So when we click on that, it goes to this right here. So we want to replace that with the exact same layout as this.
So that's what we're going to do right now. So we're going to go back over to VS Code. We're going to get into a new chat, put it into plan mode. And then here's the post, excuse me, the prompt that I have to paste in. So pretty much it says we're going to make a dedicated silo archive page, and then we say the content silo right here that we're talking about. And yeah, it's pretty simple, so you could probably just make it up off the top of your head and I'm going to let it go.
All right. It worked for one minute and 19 seconds. Let's see what we got. Route behavior. going to reuse the same archive pattern. seems to be looking good. Except the plan. A lot of get to work. I always forget to change it from medium to high. Maybe I should just leave it as high. Sometimes the high takes too long.
All right. It worked for 3 minutes and 18 seconds. Let's see what it looks like if it's there. SEO for electricians. Okay. It doesn't have the other component, the post categories, explore topics component. So let's go ahead and add that on the posts archive page right below the title. There is a component as the post categories or the content silos, the 3 buttons, and then it has the explore topics buttons, that component.
I want you to add that component to the SEO for electricians archive as well. It seems that the server can't be reached. Can you restart it? locally and then give me the link to that page? There it is. Looks exactly the same. Good to go. So what we're going to do next is just go ahead and make the same thing for electrician websites and electrician marketing. So we'll go back here and actually I'll just keep the context here because it's related. Create the remaining dedicated silo the archive pages using the 1st silo archive pages, the pattern.
And actually let me put it into plan mode first. Do plan mode, add that in, it's a medium, I go. So we have our plan. Yes, I'll implement it. All right, there it is. Let's take a look. Electrician websites is good. Electrician marketing is good. All right. All the archive posts are done. So we're going to add one more little user experience upgrade here. Under the post categories.
We have each of our categories, but a user might naturally want to go back to the all posts, archive. So we should add one more button here. In the all post archive and each of the content silo archives, we use the post-categories and explore topics that component. Under the post-categories, we have the 3 buttons for each content silo, but I also want you to add one more button to the left of those and the same styling that says all posts, and that links back to the all posts archive.
Okay, it worked for one minute and 32 seconds. So let's see. Oh, we have all posts here. Posts on posts. All right, looks good. So that is. The archive layer for the content system. Not glamorous, but most definitely needed. At this point, we have the main post archive, reusable archive components, like post cards, an archive CTA card, pagination, and dedicated silo pages that can each pull in the right posts from the content collections. The main thing I want to emphasize is that these silo pages are simple right now on purpose.
I'm not trying to make them perfect ranking pages yet because I don't have enough supporting content. I'm setting that up, setting them up so they can become custom SEO pages later. That way, each silo can eventually have its own copy, examples, FAQs, copy, internal links, conversion sections, and it can actually also automatically show the related posts from that top. So the structure is now in place. In the next video, we're gonna start implementing the glossary system, which is another major part of this website's SEO content engine.
So if you want to follow along, as I build this whole site out, piece by piece, make sure to subscribe. Thanks for watching.