English
About this handbook

This handbook belongs to the Quartz plugin quartz-layout-box. And it is built with it: this box is a layout box.

It comes from a Markdown file, not from the configuration — which way is better when is in The snippet.

9.1 – Every option

options

OptionTypeDefaultMeaning
filetextsnippet.htmlFile inside dir. A .md ending is rendered as Markdown. No effect when html is set.
dirtextquartz/static/snippetsSnippet folder, from the site root. Paths beyond it are refused.
htmltext–Markup straight in the configuration. Takes precedence over file.
classNametext–Extra class(es) next to layout-box.
titletext–Heading as an h3. Placeholders allowed.
collapsibleyes/nofalseRender as details, title becomes the clickable line. Needs title.
collapsedyes/nofalseStart closed. Only with collapsible.
placeholdersyes/notrueReplace {{…}}.
frontmatterKeytextlayoutBoxField a page uses to steer the box.
byLangobject–Differing options per language. dir and frontmatterKey are not intended there ([[en/7-two-languages/01-bylang

They are explained in chapter 2 (source), 4 (placeholders), 5 (form), 6 (frontmatter) and 7 (byLang).

layout

Belongs to Quartz, not to the plugin — the same values as for any component.

FieldValuesMeaning
positionheader, left, right, beforeBody, afterBody, footerWhere the box sits
prioritynumber, default 15Order at that place, smaller is further up
displayall, desktop-only, mobile-onlyAt which widths it appears
grouptextSeveral components side by side instead of stacked

Frontmatter

SpellingEffect
<key>: falsehide the box on this page
<key>: file.htmla different snippet
<key>: { hidden, file, html, title, collapsible, collapsed }individual options for this page

Classes in the markup produced

ClassWhere
layout-boxon the outer element, always
layout-box-titleon the heading, only with title
layout-box-contenton the inner div holding the snippet
layout-box-missingon the dashed box, only under --serve