- 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.
2 KiB
2 KiB
Multi-Blog Subdomain Deployment Guide
This project deploys 12 separate blogs to individual subdomains using Netlify.
Subdomain Structure
Each blog collection gets its own subdomain:
art.neeldhara.blog→ Art blog postsbfs.neeldhara.blog→ BFS algorithm postsdfs.neeldhara.blog→ DFS algorithm postsproblems.neeldhara.blog→ Problem-solving postspuzzles.neeldhara.blog→ Puzzle postsreviews.neeldhara.blog→ Review postsreflections.neeldhara.blog→ Reflection postsvibes.neeldhara.blog→ Vibes postsworkflows.neeldhara.blog→ Workflow postsmagic.neeldhara.blog→ Mathematical magic postscontests.neeldhara.blog→ Contest postspoetry.neeldhara.blog→ Poetry postsblog.neeldhara.blog→ Main blog posts
How It Works
- Main Site: All content is built and deployed to
neeldhara.blog - Subdomain Redirects: Each subdomain (e.g.,
art.neeldhara.blog) redirects to the main site with the appropriate path (e.g.,neeldhara.blog/art/) - Netlify Configuration: The
netlify.tomlfile handles all the redirect rules
Deployment Steps
- Build the site:
npm run build - Deploy to Netlify: Connect your Git repository to Netlify
- Configure domains: Set up the custom domains in Netlify:
- Main site:
neeldhara.blog - Subdomains:
art.neeldhara.blog,bfs.neeldhara.blog, etc.
- Main site:
- DNS Configuration: Point all subdomains to your Netlify site
Example URLs
Local development:
http://localhost:4323/art/algorithmic-sketches
Production:
https://art.neeldhara.blog/algorithmic-sketcheshttps://neeldhara.blog/art/algorithmic-sketches(direct access)
Both URLs serve the same content thanks to the redirect configuration.
Testing
After deployment, verify that:
- Each subdomain homepage loads correctly (e.g.,
art.neeldhara.blog) - Individual blog posts load correctly (e.g.,
art.neeldhara.blog/algorithmic-sketches) - RSS feeds work (e.g.,
art.neeldhara.blog/rss.xml)