Skip to content

SEO & discoverability: robots.txt, sitemap, JSON-LD, 404 page #10

Description

@satsdisco

Summary

Samizdat is a publishing platform — articles should be discoverable. Currently missing basic SEO infrastructure.

Tasks

robots.txt

  • Allow all crawlers
  • Point to sitemap

Dynamic meta tags

  • Article pages (/a/:naddr) should have proper <title>, og:title, og:description, og:image set dynamically
  • This requires either SSR/prerendering or a serverless function for OG tags
  • Vercel Edge Functions could handle this for link previews

JSON-LD structured data

  • Article pages should emit Article schema
  • Include author, datePublished, headline, image

404 page

  • Friendly "Article not found" page for invalid naddr routes
  • Suggest browsing the Press

Sitemap

  • Since articles are on Nostr (not a database), this might be a curated list of featured articles
  • Or skip sitemap and rely on proper meta tags + social sharing

Acceptance Criteria

  • robots.txt served at /robots.txt
  • Article link previews work in Telegram, Twitter, Discord
  • 404 page renders for invalid routes
  • Lighthouse SEO score > 90

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions