Improve SEO?
This commit is contained in:
parent
efed2c2f69
commit
725df27b47
8 changed files with 353 additions and 128 deletions
17
core/seo.py
Normal file
17
core/seo.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue