Skip to content

7.1: Add Meta Tags and SEO #99

@justin808

Description

@justin808

Overview

Configure proper meta tags for SEO and social sharing.

Parent Epic: #70
Priority: P2

Prerequisites

Next Issues (after this is complete)

  • None - this is a polish issue

Acceptance Criteria

  • Dynamic page titles based on content (story title, user name, etc.)
  • Open Graph tags for social sharing (og:title, og:description, og:image)
  • Twitter card meta tags
  • Description meta tags
  • Favicon configured (HN orange Y)
  • Canonical URLs set

Implementation Notes

Use Rails helpers or React on Rails features for setting meta tags:

<%# In layout %>
<title><%= content_for(:title) || 'Hacker News - React on Rails Pro' %></title>
<meta name="description" content="<%= content_for(:description) %>">
<meta property="og:title" content="<%= content_for(:title) %>">

Or handle in React components with react-helmet or similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HN-RSCHacker News RSC DemoRSCReact Server Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions