- Added 12 blog collections: art, bfs, dfs, problems, puzzles, reviews, reflections, vibes, workflows, magic, contests, poetry - Created content config with glob loaders for all collections - Added sample posts for each collection - Fixed TypeScript collection recognition by removing duplicate config - Made BlogPosts component collection-aware for proper routing - Created individual post pages ([...slug].astro) for each collection - Added Netlify subdomain routing configuration - Updated all references to use neeldhara.blog as main domain - Fixed navigation links in all-blogs component Ready for GitHub/Netlify deployment with subdomain support.
20 lines
767 B
Text
20 lines
767 B
Text
---
|
|
import DefaultLayout from '@/layouts/DefaultLayout.astro';
|
|
import { SITE_TITLE, SITE_DESCRIPTION } from '@/consts';
|
|
import { getCollection } from 'astro:content';
|
|
import { BlogPosts } from '@/components/sections/blog-posts';
|
|
import NewsletterSignup from '@/components/sections/newsletter-signup';
|
|
|
|
const posts = (await getCollection('blog')).sort(
|
|
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
|
|
);
|
|
|
|
const blogTitle = `Blog | ${SITE_TITLE}`;
|
|
const blogDescription = "Explore our blog for insightful articles, personal reflections and updates from our team.";
|
|
---
|
|
|
|
<DefaultLayout title={blogTitle} description={blogDescription}>
|
|
<BlogPosts posts={posts} collection="blog" client:only='react' />
|
|
<NewsletterSignup client:load />
|
|
</DefaultLayout>
|
|
|