Aller au contenu principal
← 📄 HTML & the platform·Module A6 · Leçon 10
TâcheBuild the complete head for a blog post at https://learnpython.academy/blog/why-fastapi. Include: doctype, html lang='en', charset, viewport, title 'Why FastAPI | CodeMentor', description, canonical (self), robots index/follow, OG 8-tag block (title, description, image https://learnpython.academy/og/why-fastapi.png, image:width 1200, image:height 630, url, type='article', site_name 'CodeMentor'), twitter summary_large_image, twitter:image, hreflang en (self) + uk (/uk/blog/why-fastapi) + x-default, JSON-LD Article with headline, author Anna, datePublished 2026-05-20T10:00:00Z, image, publisher CodeMentor with logo.

Synthèse du module : blocage complet SEO + social

200 XP14 min
Théorie

Putting A6 together

The "ship-ready" head for a blog post combines every concept from this module:

  • Title + description (per-page, value-first).
  • Canonical (self-referential, absolute).
  • robots index/follow.
  • OpenGraph 8-tag set with absolute image URL + dimensions.
  • Twitter summary_large_image.
  • JSON-LD Article with required Schema.org fields.
  • hreflang siblings for translated versions.

This is the head every post on CodeMentor's blog ships with. The Next.js Metadata API generates most of it from per-route config — but you should understand the shape it's generating.

🔒

Inscris-toi pour coder

La théorie est ouverte à tous. L'éditeur, l'aperçu live et le check se débloquent avec un essai gratuit de 7 jours — carte requise, annulable à tout moment.

S'inscrire — essai gratuit →

Les 10 premières leçons de chaque parcours sont gratuites. Pas de carte requise.

← PrécédentLeçon suivante →

Recevez une astuce Python ou web par jour — par email

Court, écrit à la main, sans spam. Désabonnement en un clic.