Commands
Every automation command and sub-command, grouped by the block it belongs to, with what it can live inside and what it does. Each name links to where it is described on the automation pages, and each is a record in the reference search. The attributes a command takes and the operations its filters use have their own pages.
Automation commands
| Command | Lives inside | What it does |
|---|---|---|
| Duplicate | ||
sitehoster:duplicate | top level | Copy a block verbatim from its master onto every page that references it. |
| Navigation | ||
sitehoster:navigation | top level | A duplicated navigation where each copy highlights the item for its own page. |
sitehoster:navigation-item | navigation | One navigation entry, carrying its selected and unselected markup. |
| Record | ||
sitehoster:record | top level | Declare a page’s entry in a collection: a block of fields. |
sitehoster:record-field | record | One field: a name, an optional type, and a value (verbatim or fenced). |
| Listing | ||
sitehoster:listing | top level | Pull a collection’s records into a list through a filter/sort/group/limit pipeline and templates. |
sitehoster:listing-item | listing | The markup rendered once per record (required). |
sitehoster:listing-separator | listing | Markup inserted between items, never before the first or after the last. |
sitehoster:listing-heading | listing | Markup rendered per item but shown only when its value changes from the item before. |
sitehoster:listing-start | listing | Markup before the first item (non-empty lists only). |
sitehoster:listing-end | listing | Markup after the last item (non-empty lists only). |
sitehoster:listing-empty | listing | Markup shown instead of the list when nothing matches. |
sitehoster:listing-filter | listing | Keep records where a field compares to a value (all of them, when repeated). |
sitehoster:listing-filter-any | listing | A group of plain listing-filters; keep records matching any of them (OR). |
sitehoster:listing-sort | listing | Order the records by a field, ascending or descending. |
sitehoster:listing-group | listing | Group by a field and take a slice (start, count) from each group. |
sitehoster:listing-limit | listing | Take a slice of the records by start and count. |
| Count | ||
sitehoster:count | top level | Report how many records in a collection match, as a singular or plural phrase. |
sitehoster:count-filter | count | Keep records where a field compares to a value (all of them, when repeated). |
sitehoster:count-filter-any | count | A group of plain count-filters; keep records matching any of them (OR). |
sitehoster:count-group | count | Group before counting, so the total reflects groups rather than rows. |
sitehoster:count-message | count | The phrase for the count (required); {{count}} is the total. |
sitehoster:count-singular | count | The phrase used instead when exactly one record matches. |