The-DevOps-Daily/devops-daily

feat: Add structured data (schema.org) for quizzes

Open

#536 geöffnet am 2. Dez. 2025

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (392 Forks)github user discovery
enhancementgood first issuehacktoberfest

Repository-Metriken

Stars
 (1.087 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Description

Add Quiz schema.org structured data to quiz pages for better SEO and rich results in search engines.

Problem

  • Quiz pages lack structured data
  • Search engines can't identify content as quizzes
  • Missing opportunity for rich snippets
  • No enhanced search results

Benefits

  • Quiz rich results in Google Search
  • Better click-through rates from search
  • Enhanced visibility in search results
  • Educational content recognition

Schema.org Quiz Structure

{
  "@context": "https://schema.org",
  "@type": "Quiz",
  "name": "DevOps Interview Questions Quiz",
  "description": "Test your knowledge...",
  "educationalLevel": "intermediate",
  "typicalAgeRange": "18-",
  "hasPart": [
    {
      "@type": "Question",
      "eduQuestionType": "Multiple choice",
      "text": "What is...",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Correct answer"
      }
    }
  ]
}

Acceptance Criteria

  • Add Quiz schema to all quiz pages
  • Include quiz metadata (title, description, difficulty)
  • Add Question schema for each question
  • Include correct answers in structured data
  • Add to <head> as JSON-LD
  • Validate with Google Rich Results Test
  • Document schema implementation
  • Test with schema.org validator

Files to Modify

  • app/quizzes/[slug]/page.tsx - Add structured data
  • lib/schema.ts - New schema generation utilities
  • components/structured-data.tsx - Reusable component

Contributor Guide