1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Update prompt related docs

This commit is contained in:
Cotes Chung
2022-02-13 02:10:52 +08:00
parent 6c4d0e0def
commit cfd05d1aa5
6 changed files with 16 additions and 25 deletions

View File

@@ -29,7 +29,7 @@ tags: [TAG] # TAG names should always be lowercase
```
> The posts' _layout_ has been set to `post` by default, so there is no need to add the variable _layout_ in the Front Matter block.
{: .prompt-note }
{: .prompt-tip }
### Timezone of Date
@@ -249,25 +249,13 @@ pin: true
## Prompts
There are three types of prompts, `note`, `warning` and `danger`. When writing, add the class `prompt-{type}` to a blockquote:
There are several types of prompts: `tip`, `info`, `warning`, and `danger`. They can be generated by adding the class `prompt-{type}` to the blockquote. For example, define a prompt of type `info` as follows:
- **Note**
```md
> Example line for prompt.
{: .prompt-note }
```
- **Warning**
```md
> Example line for prompt.
{: .prompt-warning }
```
- **Danger**
```md
> Example line for prompt.
{: .prompt-danger }
```
```md
> Example line for prompt.
{: .prompt-info }
```
{: .nolineno }
## Syntax