Alert shortcode

Learn to use alerts!

Iara Authors
· 1 min read

This theme has built in shortcodes. Shortcodes are simple snippets inside your content files calling built-in or custom templates.

Alerts

A nice way to highlight a piece of information in your articles.

Colors

Alerts have many colors.

Usage

1
{{< alert text="A simple alert." >}}

If no color is specified, info is used by default, or you can set the color you want.

1
{{< alert text="A simple alert." color="dark" >}}

Markdown

You can use markdown inside your alert as well.

1
{{< alert text="An **alert** with a [link](#)." color="warning" >}}

Additional content

Alerts can also have header and footer to catch user attention even more.

1
{{< alert text="Aww yeah, you successfully read this this alert message." header="Well done!" footer="Congratulations." color="success" >}}