Skip to content

SCKT-243 / #443: Implement SSG for blog static pre-rendering#11

Merged
wow-miley merged 1 commit intomasterfrom
email/sckt-243-fix-mileycodes-blog-spa-architecture-ssrssg-for-seo-social
Mar 19, 2026
Merged

SCKT-243 / #443: Implement SSG for blog static pre-rendering#11
wow-miley merged 1 commit intomasterfrom
email/sckt-243-fix-mileycodes-blog-spa-architecture-ssrssg-for-seo-social

Conversation

@wow-miley
Copy link
Copy Markdown
Owner

Summary

Implements Static Site Generation (SSG) for blog posts to enable proper Open Graph and Twitter Card metadata in the initial HTML response. This fixes SEO indexing and social preview unfurling on Twitter/X, LinkedIn, Slack, and other platforms.

Changes include a new Gradle task that pre-renders blog post HTML at build time, adds CommonMark markdown parsing support, and updates blog URLs from hash-based routes to clean paths (e.g., /blog/dark-factory-needs-windows).

Details

  • Added JVM compilation target with CommonMark dependency for markdown processing
  • Created BlogGenerator task that runs post-build to generate static HTML for each post with full metadata
  • Updated index.html with canonical URL and description meta tag
  • Changed blog routing to clean URLs compatible with static file serving

Closes #443

Co-Authored-By: Claude Haiku noreply@anthropic.com

Add server-side generation task to pre-render blog posts at build time,
enabling proper Open Graph/Twitter Card metadata in HTML for social preview
unfurling. Includes commonmark dependency for markdown parsing and updates
blog URLs to clean paths. Solves SEO and social sharing issues.

Co-Authored-By: Claude Haiku <noreply@anthropic.com>
@wow-miley wow-miley merged commit 52a61da into master Mar 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant