Skip to content

Add callout (admonishments) shortcode

Georgia Stuart requested to merge admonishments into main

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

Light mode: image

Dark mode: image

Note

Light mode: image

Dark mode: image

Caution

Light mode: image

Dark mode: image

Warning

Light mode: image

Dark mode: image Signed-off-by: Georgia Stuart gstuart@umass.edu

Merge request reports

Loading