Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_index.md « alert « shortcodes « content « exampleSite - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 56dc66772d0f6d95105e649f1ae355c612b3f296 (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
28
29
30
31
32
33
34
35
36
37
38
39
---
description: The alert shortcode allows you to highlight information in your page.
title: alert
---

The `alert` shortcode allow you to highlight information in your page. They create a colored box surrounding your text, like this:

{{%alert%}}**This is** an alert !{{%/alert%}}
## Usage 

| Parameter | Default | Description |
|:--|:--|:--|
| theme | `info` | `primary`,`success`, `info`,`warning`,`danger`,`dark`,`light`,`secondary` |

{{%alert info%}}
**Tips :** setting only the theme as argument works too : 
`{{%/*alert warning*/%}}`  instead of `{{%/*alert theme="warning"*/%}}`
{{%/alert%}}

## Basic examples

```
	{{%/* alert primary */%}}**this** is a primary{{%/* /alert */%}}
	{{%/* alert theme="info" */%}}**this** is a text{{%/* /alert */%}}
	{{%/* alert theme="success" */%}}**Yeahhh !** is a text{{%/* /alert */%}}
	{{%/* alert theme="warning" */%}}**Be carefull** is a text{{%/* /alert */%}}
	{{%/* alert danger */%}}**Beware !** is a text{{%/* /alert */%}}
	{{%/* alert dark */%}}**Dark !** is a dark{{%/* /alert */%}}
	{{%/* alert light */%}}**oooh !** is a light{{%/* /alert */%}}
	{{%/* alert secondary */%}}**Wait !** is a secondary{{%/* /alert */%}}
```
{{% alert primary %}}**this** is an primary{{% /alert %}}
{{% alert theme="info"%}}**this** is an info{{% /alert %}}
{{% alert theme="success" %}}**Yeahhh !** is a success{{% /alert %}}
{{% alert theme="warning" %}}**Be carefull** is a warning{{% /alert %}}
{{% alert danger %}}**Beware !** is a danger{{% /alert %}}
{{% alert dark %}}**Dark !** is a dark{{% /alert %}}
{{% alert light %}}**oooh !** is a light{{% /alert %}}
{{% alert secondary %}}**Wait !** is a secondary{{% /alert %}}