Skip to content

Add blog feature with SEO, i18n, and tagging support#9

Merged
jhash merged 1 commit intomainfrom
blog
Jul 25, 2025
Merged

Add blog feature with SEO, i18n, and tagging support#9
jhash merged 1 commit intomainfrom
blog

Conversation

@jhash
Copy link
Copy Markdown
Owner

@jhash jhash commented Jul 25, 2025

Summary

  • Adds a comprehensive blog feature to the Eight application
  • Includes modern SEO capabilities, internationalization, and a flexible tagging system
  • Styled with NYT-inspired design using Tailwind CSS

Features Added

Database Schema

  • Blog posts table with comprehensive SEO fields (meta tags, Open Graph, Twitter cards)
  • Polymorphic tagging system with tags and taggings tables
  • Support for draft, published, and archived post statuses

Models

  • BlogPost model with status enum, slug generation, and SEO defaults
  • Tag model with automatic slug generation
  • Tagging model for polymorphic associations

Controllers & Views

  • BlogPostsController with index and show actions
  • NYT-style responsive blog layout
  • Simple pagination without external dependencies
  • RSS and Atom feed support

Additional Features

  • Internationalization support for all blog text
  • Rake tasks for generating and deleting example blog posts
  • Blog link added to main navigation
  • View count tracking for analytics

Test plan

  • Run rails blog:generate_example to create a sample blog post
  • Visit /blog to see the blog index page
  • Click on a blog post to view the full article
  • Check RSS feed at /blog.rss
  • Check Atom feed at /blog.atom
  • Verify responsive design on mobile and desktop
  • Run rails blog:delete_examples to clean up test data

🤖 Generated with Claude Code

- Create blog posts table with comprehensive SEO fields (meta tags, Open Graph, Twitter cards)
- Implement polymorphic tagging system for flexible content categorization
- Add BlogPost, Tag, and Tagging models with proper associations
- Create blog posts controller with index and show actions
- Design NYT-style blog views with responsive layout
- Add RSS and Atom feed support for blog posts
- Create rake tasks for generating and deleting example blog posts
- Add internationalization support for all blog text
- Include Blog link in main navigation
- Simple pagination implementation without external dependencies

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jhash jhash marked this pull request as ready for review July 25, 2025 21:39
@jhash jhash merged commit ae413d6 into main Jul 25, 2025
3 of 4 checks passed
jhash added a commit that referenced this pull request Jul 26, 2025
- Create blog posts table with comprehensive SEO fields (meta tags, Open Graph, Twitter cards)
- Implement polymorphic tagging system for flexible content categorization
- Add BlogPost, Tag, and Tagging models with proper associations
- Create blog posts controller with index and show actions
- Design NYT-style blog views with responsive layout
- Add RSS and Atom feed support for blog posts
- Create rake tasks for generating and deleting example blog posts
- Add internationalization support for all blog text
- Include Blog link in main navigation
- Simple pagination implementation without external dependencies

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
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