Improve SEO?

This commit is contained in:
Joakim Hellsén 2026-03-17 04:34:09 +01:00
commit 725df27b47
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
8 changed files with 353 additions and 128 deletions

17
core/seo.py Normal file
View file

@ -0,0 +1,17 @@
from typing import Any
from typing import TypedDict
class SeoMeta(TypedDict, total=False):
"""Shared typed optional SEO metadata for template context generation."""
page_image: str | None
page_image_width: int | None
page_image_height: int | None
og_type: str
schema_data: dict[str, Any] | None
breadcrumb_schema: dict[str, Any] | None
pagination_info: list[dict[str, str]] | None
published_date: str | None
modified_date: str | None
robots_directive: str