Skip to main content

Module page_readiness

Module page_readiness 

Source
Expand description

What a staged page needs before the agent may publish it: a hero section as its h1, and none of the default templates’ placeholder text.

Structs§

PlaceholderText
A block text attribute that is still a default template’s placeholder.

Constants§

PAGE_TITLE_BLOCKS
The only blocks the CMS heading rules accept as a page’s h1 (headingHierarchy.ts).

Functions§

has_page_title
Whether the blocks hold a PAGE_TITLE_BLOCKS block with a title.
pages_with_content_changes
The pages of staged whose blocks differ from live, new pages included.
placeholder_texts
The text attributes in blocks whose whole text is one of TEMPLATE_PLACEHOLDER_TEXTS.