Skip to content

feat: add canonical URL and structured data to page head #139

@rohilsurana

Description

@rohilsurana

Problem

The `Head` component (`src/lib/head.tsx`) doesn't set `` tags. For sites with multiple URL paths to the same content (e.g. versioned docs, trailing slashes), this hurts SEO by splitting page authority.

The root `App.tsx` sets basic WebSite JSON-LD, but individual pages don't get Article or TechArticle structured data.

Suggested Fix

  • Add `` using `config.url` + current path
  • Add `TechArticle` JSON-LD to doc pages with title, description, dateModified, author

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions