本文將介紹如何使用 alert shortcode。

語法#

Inline#

1{{< alert [type] >}}INLINE ALERT{{< /alert >}}

Block#

1{{< alert [type] >}}
2BLOCK ALERT
3{{< /alert >}}

The parameter type is optional. Default to info, availiable values: info, success, warning and danger.

帶有標題#

1{{< alert [type] >}}
2{{< alert-heading >}}Well Done!{{< /alert-heading >}}
3ALERT MESSAGE
4{{< /alert >}}

例子#