Callouts
Highlight notes, tips, warnings, and important messages in Mordoc pages.
Callouts help important information stand out from the rest of the page.
Use them when a reader should pause, notice something, or be careful before continuing. Do not use a callout for every important sentence. Too many callouts make a page harder to scan.
Add a basic callout
A callout starts with {% callout %} and ends with {% /callout %}.
{% callout type="note" title="Good to know" %}
The Fellowship of the Ring set out from Rivendell with nine companions.
{% /callout %}The text between the opening and closing tags is the callout content.
Choose a type
Mordoc supports four callout types:
notefor useful extra contexttipfor helpful suggestionswarningfor something readers should be careful aboutdangerfor serious or risky situations
The type value is optional. If you leave it out, Mordoc uses note.
The title value is also optional. Add one when it helps readers understand the callout quickly.
Note
Use note for helpful information that supports the main text.
{% callout type="note" title="Good to know" %}
The Shire lies west of Bree, across the Brandywine River.
{% /callout %}How it renders
The Shire lies west of Bree, across the Brandywine River.
Tip
Use tip for advice that makes a task easier.
{% callout type="tip" title="Speak, friend, and enter" %}
When at the gates of Moria, say "Mellon."
{% /callout %}How it renders
When at the gates of Moria, say "Mellon."
Warning
Use warning when readers should slow down or check something before continuing.
{% callout type="warning" title="Mind the water" %}
Do not linger by the lake outside the Doors of Durin. Something stirs beneath its surface.
{% /callout %}How it renders
Do not linger by the lake outside the Doors of Durin. Something stirs beneath its surface.
Danger
Use danger only for serious situations.
{% callout type="danger" title="Never put on the Ring" %}
Do not put on the One Ring. The moment you wear it, you draw the Eye of Sauron towards you.
{% /callout %}How it renders
Do not put on the One Ring. The moment you wear it, you draw the Eye of Sauron towards you.
Keep callouts short
A good callout is usually one short paragraph or a small list. If the callout becomes long, it may need to be a normal section instead.
Callout attributes
| Attribute | Description | Values | Required |
|---|---|---|---|
type | The callout style | note, tip, warning, danger (default note) | Optional |
title | A short heading shown above the callout body | Any text | Optional |