Add callout (admonishments) shortcode
By default, the theme provides callout
shortcodes for
- tip
- note
- warning
- caution
Syntax is
{{< callout <required type> "<optional title>" >}}
CONTENT
{{< /callout >}}
You can add custom callouts or override the defaults in hugo.yaml
in the project directory by adding
params:
extends:
callouts:
newcallout:
icon: <material icon name>
color: "#<color>"
colordark: "#<dark mode color>"
to hugo.yml
, which makes {{< callout newcallout >}}Content{{< /callout >}}
available.
Tip
Note
Caution
Warning
Dark mode: Signed-off-by: Georgia Stuart gstuart@umass.edu