Repository navigation
v2.3.0: SEO & LLM-Optimized Blog Engine
📝 SEO & LLM-Optimized Blog Engine
This release adds a complete, production-ready blog system optimized for both traditional search engines AND AI crawlers like ChatGPT, Claude, and Perplexity.
Major Features
-
Full-Featured MDX Blog at
/blog- Static Site Generation (SSG) for all posts
- Client-side search across all content
- Category and tag filtering
- Auto-generated table of contents with scroll tracking
- Related posts suggestions
- Reading time estimates
- Social sharing (Twitter, LinkedIn, copy link)
- Dark mode support with Tailwind Typography
-
LLM SEO Optimization
llms.txtat site root - guides AI crawlers to important contentrobots.txtexplicitly allows GPTBot, ClaudeBot, PerplexityBot, Applebot, Google-Extended- JSON-LD structured data (TechArticle schema) on every post
- Server-side rendering ensures AI crawlers see all content
- RSS feed at
/feed.xmlfor content syndication
-
Automated Sitemap Generation
- Node.js script at
scripts/generate-sitemap.mjs - Generates
sitemap.xmlwith all blog URLs, categories, and tags - Runs automatically via
prebuildhook - Manual generation:
npm run generate:sitemap
- Node.js script at
-
Dark Mode Toggle on homepage header
- Sun/Moon icon with smooth rotation animation
- Persists theme preference
Bug Fixes
-
Fixed duplicate heading IDs in table of contents (
f577c5a)- Posts with repeated section titles now generate unique IDs
- Matches
rehype-slugbehavior:summary,summary-1,summary-2
-
Fixed Next.js 15 SSG compatibility (
980a79c)- Wrapped
BlogSearchin Suspense boundary - Resolves
useSearchParams()build error during static generation
- Wrapped
📥 How to Update
For New Users
git clone https://github.com/harperaa/secure-vibe-coding-OS.git
cd secure-vibe-coding-OS
npm installFor Existing Users (Forked Template)
Add template remote if needed:
git remote add template https://github.com/harperaa/secure-vibe-coding-OS.git
git fetch template --tagsCherry-pick the blog feature:
git cherry-pick e6da967 # Main blog engine
git cherry-pick f577c5a # Fix duplicate heading IDs
git cherry-pick 980a79c # Fix Next.js 15 SSG Suspense
npm install
npm run generate:sitemap📋 Key Commits
| Commit | Description |
|---|---|
e6da967 |
Add SEO and LLM-optimized blog engine |
f577c5a |
Fix duplicate heading IDs in TOC |
980a79c |
Wrap BlogSearch in Suspense for Next.js 15 |
🔧 Configuration
Required:
NEXT_PUBLIC_SITE_URL=https://yourdomain.comNew dependencies:
{
"next-mdx-remote": "^5.0.0",
"gray-matter": "^4.0.3",
"reading-time": "^1.5.0",
"@tailwindcss/typography": "^0.5.19"
}Ship secure, get discovered by humans AND AI! 🚀