Documentation
¶
Overview ¶
Package seo checks the search-engine and social metadata of an export.
static.New(app, static.Checks(seo.Preset()))
Preset checks every exported 200 HTML page that is not marked noindex: the required head tags, unique titles and descriptions, a canonical URL equal to the page's own URL, an og:image that is in the export at the expected size, sitemap coverage, and JSON-LD that parses. Each problem is an error diagnostic, so it fails the export unless --allow names its code.
Index ¶
Constants ¶
const ( CodeMissingTag = "SEO001" // a required head tag is missing or empty CodeDuplicateTitle = "SEO002" // two pages share a <title> CodeDuplicateDescription = "SEO003" // two pages share a meta description CodeCanonical = "SEO004" // the canonical URL is not the page's URL CodeOGImage = "SEO005" // og:image is missing from the export, the wrong size, or too large CodeSitemap = "SEO006" // the page is not in the sitemap CodeJSONLD = "SEO007" // a JSON-LD block does not parse )
Diagnostic codes.
Variables ¶
This section is empty.