What check looks for

The 28 problems contentbit check reports on a site's built pages, grouped by topic, with what fails a build and what only warns.

contentbit check reads the HTML your build wrote and reports 28 kinds of problem on the built pages. An error fails the command, and so fails a CI job. A warning does not, unless you run check --strict.

Most checks skip a page marked noindex, since a search engine does not index it.

Titles and descriptions

What check reportsSeverityCode
A page has no title.errorCB_PAGE_TITLE_MISSING
Two pages have the same title.warningCB_PAGE_TITLE_DUPLICATE
A page has no meta description.warningCB_PAGE_DESCRIPTION_MISSING
Two pages have the same meta description.warningCB_PAGE_DESCRIPTION_DUPLICATE
A page serves another title than the one its Markdown declares.warningCB_PAGE_TITLE_MISMATCH
A page serves another description than the one its Markdown declares.warningCB_PAGE_DESCRIPTION_MISMATCH

Canonical URLs

What check reportsSeverityCode
A page has no canonical URL.warningCB_PAGE_CANONICAL_MISSING
A canonical URL points to a page that does not exist.errorCB_PAGE_CANONICAL_NOT_BUILT
A canonical URL points to another page of the site.warningCB_PAGE_CANONICAL_ELSEWHERE
A canonical URL is on another domain than the site.warningCB_PAGE_CANONICAL_ORIGIN

Headings and content

What check reportsSeverityCode
A page has no h1.warningCB_PAGE_H1_MISSING
A page has more than one h1.warningCB_PAGE_H1_MULTIPLE
The HTML of a page is almost empty, so its content shows only after JavaScript runs.warningCB_PAGE_BROWSER_RENDERED

Images and structured data

What check reportsSeverityCode
An image has no alt attribute.warningCB_PAGE_IMAGE_ALT_MISSING
A JSON-LD block is not valid JSON.errorCB_PAGE_STRUCTURED_DATA_INVALID
What check reportsSeverityCode
A link points to a page that does not exist.errorCB_LINK_PAGE_MISSING
A link points to an #id that its target page does not have.errorCB_LINK_ANCHOR_MISSING
A link points to a file, such as a PDF, that is not in the build.errorCB_LINK_FILE_MISSING
A link points to a page marked noindex.infoCB_LINK_NOINDEX_TARGET

Sitemap

What check reportsSeverityCode
The sitemap lists a URL that is not a page of the build.errorCB_SITE_SITEMAP_URL_NOT_BUILT
A page is not in the sitemap.warningCB_SITE_SITEMAP_PAGE_MISSING
The sitemap lists a page marked noindex.warningCB_SITE_SITEMAP_NOINDEX

Translated pages

What check reportsSeverityCode
An hreflang alternate points to a missing page, or to a page that does not point back.warningCB_SITE_HREFLANG_NOT_RECIPROCAL
A page lists hreflang alternates and no x-default.warningCB_SITE_HREFLANG_X_DEFAULT_MISSING

Markdown and its pages

These need page routes, which say which built page each Markdown file becomes.

What check reportsSeverityCode
A published Markdown file has no page in the build.errorCB_SITE_SOURCE_NOT_BUILT

Page types

These run only when you define SEO contracts for your page types.

What check reportsSeverityCode
A page lacks a link that its page type requires.warningCB_PAGE_LINK_REQUIRED
A page links to fewer pages than its page type asks for.warningCB_PAGE_OUTGOING_LINKS_MIN
Fewer pages link to a page than its page type asks for.warningCB_PAGE_INCOMING_LINKS_MIN

Markdown

check also reads the Markdown files your config lists, for what the built pages cannot show:

What check reportsSeverityCode
A heading skips a level, such as an h4 right under an h2.warningCB_HEADING_LEVEL_SKIPPED
A translated page has no key to pair it with its other languages.warningCB_LOCALE_KEY_MISSING
A page is missing in one of the site's languages.warningCB_LOCALE_KEY_INCOMPLETE

Where each finding points

Every finding names the place to fix it: a line of a Markdown file, an element of the layout that repeats the problem on several pages, or a page. Check a site shows each one in a report.

Next steps

  • Ignore a finding when one is there on purpose, or change its severity.
  • Finding codes gives the exact condition of every code. It also lists the codes this page leaves out: SEO contracts, typed blocks, the check settings, the installed agent skills, and validate.