Skip to main content

Notice

Warning

This shortcode is deprecated in favor of the new callout shortcode. See migration instructions below.

The examples on this page were removed.

The notice shortcode shows boxes with configurable color, title and icon.

Migration

While this shortcode will still be available for some time, it does not receive support anymore. Start to migrate early, as it will be removed with the next major update of the theme.

Each use of the notice shortcode issues a warning during the build.

The callout shortcode is the same shortcode under a new name. It takes the same parameters at the same positions.

To migrate your pages, rename the calls from notice to callout. If you call the shortcode from your own partials, rename shortcodes/notice.html to shortcodes/callout.html.

The box written by the callout shortcode carries the CSS class callout instead of notices. If you styled the box in your own CSS, adapt your selectors.

Usage

​
{{% notice icon="skull-crossbones" style="primary" title="There may be pirates" %}}
It is all about the boxes.
{{% /notice %}}
{{% notice "primary" "There may be pirates" "skull-crossbones" %}}
It is all about the boxes.
{{% /notice %}}
{{ partial "shortcodes/notice.html" (dict
  "page" .
  "content" "It is all about the boxes."
  "icon" "skull-crossbones"
  "style" "primary"
  "title" "There may be pirates"
)}}

Parameters

The parameters are the same as for the callout shortcode.