English
About this handbook

This handbook belongs to the template Example for QuartzControl. It explains the template and, at the same time, shows everything it can do.

The text here comes from a Markdown file, not from the configuration.

5.5 – Layout boxes

quartz-layout-box renders an HTML or Markdown snippet at any place in the page layout: header, sidebars, before or after the content, footer. This template uses it seven times, each time for something different — twice of those without a box coming out of it at all.

What the plugin can do

PossibilityOption
Content from a filefile:
Content from the configurationhtml:
Markdown instead of HTMLlet the file end in .md
A heading above ittitle:
Collapsiblecollapsible: and collapsed:
A CSS class of your ownclassName:
Replace placeholdersplaceholders:
Controllable per pagefrontmatterKey:
Different per languagebyLang:
An image per colour schemeclasses img-light / img-dark

Placeholders

{{title}}, {{slug}}, {{root}}, {{siteTitle}}, {{baseUrl}}, {{locale}}, {{lang}} and every frontmatter field through {{frontmatter.name}}. {{root}} is the relative path to the home page — so a link works even when the page sits in a sub-path.

{{locale}} names the language of the page (from the lang frontmatter field) and only falls back to configuration.locale when the page has none. {{lang}} is its front part: en rather than en-US.

The design

The plugin deliberately ships colourless styles: width, image switching, a dashed placeholder for missing files. That is the right decision for a component plugin — it leaves the appearance to the site.

This template designs every class: .layout-box, .layout-box-title, .layout-box-content, .layout-box-missing, plus seven variants of its own.

Further: The instances · Controlling it per page

The pages

  • The instances — The same plugin, seven times, for something different each time.

1 Datei in diesem Ordner.

Read on

This page belongs to Example — the example template for QuartzControl. An overview of every area is on the English home page.

On a narrow screen the navigation is collapsed at the top.