Prejsť na hlavný obsah
← 📄 HTML & the platform·Modul A6 · Lekcia 10
ÚlohaBuild 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.

Hlavný kameň modulu: úplný SEO + sociálny blok

200 XP14 min
Teória

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.

🔒

Zaregistruj sa a začni programovať

Teória je otvorená pre každého. Editor, živý náhľad a kontrola sa odomknú so 7-dňovou bezplatnou skúškou — karta potrebná, zruš kedykoľvek.

Registrácia — bezplatná skúška →

Prvých 10 lekcií v každej trase je zdarma. Karta nie je potrebná.

← PredchádzajúcaĎalšia lekcia →

Jeden tip k Pythonu alebo webu denne — e-mailom

Krátke, ručne písané, žiadny spam. Odhlásiť jedným klikom.