blob: 86734572cdbe875d0313b0957d4e60e53ca7307d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
+++
title = "Alerts"
description = ""
weight = 1
+++
The alerts shortcode allows you to let information stand out by means of an alert styled box. This can be used to indicate danger, warning, success or info.
{{< alert style="danger" >}} I'm a danger alert {{< /alert >}}
{{< alert style="warning" >}} I'm a warning alert {{< /alert >}}
{{< alert style="success" >}} I'm a success alert {{< /alert >}}
{{< alert style="info" >}} I'm an info alert {{< /alert >}}
## Usage
Place the following shortcode on the page
{{< code lang="html" >}}
{{</* alert style="STYLE" */>}} [content] {{</* /alert */>}}
{{< /code >}}
### Parameters
#### Style
The style parameter is directly applied to the alert as a class in the format *"alert-{STYLE}"*. Bootstrap comes with four styles that can be used with this:
- danger
- warning
- success
- info
|