--- import { getCollection } from 'astro:content'; import BaseLayout from '../../layouts/BaseLayout.astro'; import SEO from '../../components/SEO.astro'; const allPosts = await getCollection('blog', ({ data }) => !data.draft); const sortedPosts = allPosts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); const categories = ['All', 'Web Development', 'Mobile Apps', 'AI/ML', 'Cloud', 'DevOps', 'Security'] as const; function getReadingTime(content: string): number { const wordsPerMinute = 200; const words = content.split(/\s+/).length; return Math.ceil(words / wordsPerMinute); } function formatDate(date: Date): string { return date.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric', }); } ---

Our Blog

Insights, tutorials, and industry trends from our team of experts. Stay ahead with the latest in technology.

{categories.map((category, index) => ( ))}
{sortedPosts.map((post) => { const readingTime = getReadingTime(post.body); return (
{post.data.heroImage ? ( {post.data.title} ) : (
)}
{post.data.category} {readingTime} min read

{post.data.title}

{post.data.description}

{post.data.tags.slice(0, 3).map((tag) => ( #{tag} ))}
{post.data.author.name.charAt(0)}
{post.data.author.name}
); })}