Hwaro::Models::ContentGenerateConfig
One [[content.generate]] entry — a declarative rule that materializes
each record of a site.data array (disk data/ or [[data.remote]])
into a real content page. This class is the validated config shape;
evaluation and page synthesis live in Core::Build::ContentGenerate.
slug/title/body/date/description and each taxonomies value
accept either a plain record field name ("sku") or a Crinja template
("{{ item.sku | slugify }}") — a string containing {{ or {% is
treated as a template rendered with the record bound to item.
Constructors
Instance methods
Field-or-template producing the page's markdown body ("" when nil and no body_template).
Alternative body source: a template file (from templates/) rendered
with the record as item. Mutually exclusive with body.
Alternative body source: a template file (from templates/) rendered
with the record as item. Mutually exclusive with body.
Target section: generated pages get paths <section>/<slug>.md, so
section listings, [permalinks] patterns, feeds and taxonomies all
apply exactly as they do to authored pages in that section.
Target section: generated pages get paths <section>/<slug>.md, so
section listings, [permalinks] patterns, feeds and taxonomies all
apply exactly as they do to authored pages in that section.
Field-or-template producing each page's slug (slugified after evaluation) and title.
Dotted path into site.data naming the record array, e.g.
"products" or "products.items".
Dotted path into site.data naming the record array, e.g.
"products" or "products.items".
taxonomy name => field-or-template. A field that holds an array contributes every element as a term; scalars contribute one term.
taxonomy name => field-or-template. A field that holds an array contributes every element as a term; scalars contribute one term.