mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
42c8ec549b
The new highlighter does not work to well if no syntax is specified for the code block / code fence / indention. See https://github.com/gohugoio/hugo/pull/8917
3.1 KiB
3.1 KiB
title | description |
---|---|
Notice | Disclaimers to help you structure your page |
The notice shortcode shows four types of disclaimers to help you structure your page.
Usage
{{%/* notice [ note | info | tip | warning ] */%}}
Some markup
{{%/* /notice */%}}
Examples
Note
{{% notice note %}} A notice disclaimer
You can add:
- multiple paragraphs
- bullet point lists
- emphasized, bold and even bold emphasized text
- links
- other shortcodes besides
notice
- etc.
...and even source code
the possiblities are endless {{% /notice %}}
{{% expand "Show markup" %}}
{{%/* notice note */%}}
A **notice** disclaimer
You can add:
- multiple paragraphs
- bullet point lists
- _emphasized_, **bold** and even ***bold emphasized*** text
- [links](https://example.com)
- other shortcodes besides `notice`
- etc.
```plaintext
...and even source code
```
> the possiblities are endless
{{%/* /notice */%}}
{{% /expand %}}
Info
{{% notice info %}} An information disclaimer
You can add:
- multiple paragraphs
- bullet point lists
- emphasized, bold and even bold emphasized text
- links
- other shortcodes besides
notice
- etc.
...and even source code
the possiblities are endless {{% /notice %}}
{{% expand "Show markup" %}}
{{%/* notice info */%}}
An **information** disclaimer
You can add:
- multiple paragraphs
- bullet point lists
- _emphasized_, **bold** and even ***bold emphasized*** text
- [links](https://example.com)
- other shortcodes besides `notice`
- etc.
```plaintext
...and even source code
```
> the possiblities are endless
{{%/* /notice */%}}
{{% /expand %}}
Tip
{{% notice tip %}} A tip disclaimer
You can add:
- multiple paragraphs
- bullet point lists
- emphasized, bold and even bold emphasized text
- links
- other shortcodes besides
notice
- etc.
...and even source code
the possiblities are endless {{% /notice %}}
{{% expand "Show markup" %}}
{{%/* notice tip */%}}
A **tip** disclaimer
You can add:
- multiple paragraphs
- bullet point lists
- _emphasized_, **bold** and even ***bold emphasized*** text
- [links](https://example.com)
- other shortcodes besides `notice`
- etc.
```plaintext
...and even source code
```
> the possiblities are endless
{{%/* /notice */%}}
{{% /expand %}}
Warning
{{% notice warning %}} A warning disclaimer
You can add:
- multiple paragraphs
- bullet point lists
- emphasized, bold and even bold emphasized text
- links
- other shortcodes besides
notice
- etc.
...and even source code
the possiblities are endless {{% /notice %}}
{{% expand "Show markup" %}}
{{%/* notice warning */%}}
A **warning** disclaimer
You can add:
- multiple paragraphs
- bullet point lists
- _emphasized_, **bold** and even ***bold emphasized*** text
- [links](https://example.com)
- other shortcodes besides `notice`
- etc.
```plaintext
...and even source code
```
> the possiblities are endless
{{%/* /notice */%}}
{{% /expand %}}