module

Plombir::Check::SeoCheck

SEO-lite section: every built page should carry a non-empty <title> and a description meta tag. Findings are warnings — SEO never breaks a build unless --strict says so. url is site.url (empty when unconfigured): without it, canonical URLs, sitemap locations, and feed links stay site-relative.

Constants

CONTENT_ATTR = /\bcontent\s*=\s*["']([^"']*)["']/i
META_TAG = /<meta\b[^>]*>/i
SECTION = "SEO"
TITLE = /<title>(.*?)<\/title>/im
TITLE_LIMIT = 60

Search results truncate titles around this width; longer is a warning, never an error.

Class methods

check(dist : String, url : String = "") : Array(Issue)
Source
meta_content(html : String, name : String) : String | Nil

Value of the content attribute on <meta name=...> if present.

Source