Aman Mittal 11/28/2025

How to add a recent posts section to your Astro blog

Read Original

This article provides a step-by-step tutorial for developers on how to add a 'recent posts' section to an Astro.js blog. It explains how to create a reusable Astro component that filters posts by tags, excludes drafts and the current post, and shows only content from the last 12 months, all without relying on external analytics services.

How to add a recent posts section to your Astro blog

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week