Plombir::Seo::Head
Constants
DESCRIPTION_LENGTH = 160
Meta-description ceiling for the collapsed-excerpt fallback.
Class methods
build(title : String, description : String, excerpt : String, image : String | Nil, date : Time | Nil, collection : String, url : String, site : Config::Site) : String
Builds the head block for a page at url (pretty URL, e.g.
/posts/hi/) in collection (e.g. "posts", "root").
excerpt is the plain-text fallback when no description:
frontmatter exists; site supplies the title suffix, the
description fallback, and the canonical base (empty base omits
canonical and absolute URLs).
Head.build(title: "Hi", description: "", excerpt: "Hello.",
image: nil, date: nil, collection: "root", url: "/",
site: Plombir::Config::Site.new("Blog", "", "https://x.example"))