Skip to content

v2.3.0: SEO & LLM-Optimized Blog Engine

Choose a tag to compare

@harperaa harperaa released this 09 Jan 02:28
· 324 commits to main since this release

📝 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.txt at site root - guides AI crawlers to important content
    • robots.txt explicitly 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.xml for content syndication
  • Automated Sitemap Generation

    • Node.js script at scripts/generate-sitemap.mjs
    • Generates sitemap.xml with all blog URLs, categories, and tags
    • Runs automatically via prebuild hook
    • Manual generation: npm run generate:sitemap
  • 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-slug behavior: summary, summary-1, summary-2
  • Fixed Next.js 15 SSG compatibility (980a79c)

    • Wrapped BlogSearch in Suspense boundary
    • Resolves useSearchParams() build error during static generation

📥 How to Update

For New Users

git clone https://github.com/harperaa/secure-vibe-coding-OS.git
cd secure-vibe-coding-OS
npm install

For 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 --tags

Cherry-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.com

New 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! 🚀