Notice
Th' notice
shortcode shows various types o' disclaimers wit' adjust'ble color, title an' ay'con t' help ye structure yer plank.
It be all about th' boxes.
Usage
While th' examples be us'n shorrrtcodes wit' named parameter ye be free t' use positional as well, use it as GitHub or Obsidian styled alerts an' also call this shortcode from yer own partials.
> [!primary] There may be pirates
> It be all about th' boxes.
{{% notice style="primary" title="There may be pirates" ay'con="skull-crossbones" %}}
It be all about th' boxes.
{{% /notice %}}
{{% notice primary "There may be pirates" "skull-crossbones" %}}
It be all about th' boxes.
{{% /notice %}}
{{ partial "shortcodes/notice.html" (dict
"page" .
"style" "primary"
"title" "There may be pirates"
"icon" "skull-crossbones"
"content" "It be all about th' boxes."
)}}
Parameter
Name | Posit'n | Default | Notes |
---|---|---|---|
style | 1 | default |
Th' style scheme used fer th' box. - by severity: caut'n , important , info , note , tip , warning - by brand color: primary , secondary , accent - by color: blue , cyan , green , grey , magenta , orange , red - by special color: default , transparent , code |
color | see notes | Th' CSS color value t' be used. If not set, th' chosen color depends on th' style. Any given value will overwrite th' default. - fer severity styles: a nice match'n color fer th' severity - fer all other styles: th' correspond'n color |
|
title | 2 | see notes | Arbitrary text fer th' box title. Depend'n on th' style there may be a default title. Any given value will overwrite th' default. - fer severity styles: th' match'n title fer th' severity - fer all other styles: <empty> If ye want no title fer a severity style, ye have t' set this parameter t' " " (a non empty str'n filled wit' spaces) |
ay'con | 3 | see notes | Font Awesome ay'con name set t' th' left o' th' title. Depend'n on th' style there may be a default ay'con. Any given value will overwrite th' default. - fer severity styles: a nice match'n ay'con fer th' severity - fer all other styles: <empty> If ye want no ay'con fer a severity style, ye have t' set this parameter t' " " (a non empty str'n filled wit' spaces) |
expanded | <empty> | Whether t' draw an expander an' how th' rrrambl'n be displayed. - <empty>: no expander be drawn an' th' rrrambl'n be permanently shown - true : th' expander be drawn an' th' rrrambl'n be initially shown- false : th' expander be drawn an' th' rrrambl'n be initially hidden |
|
<content> | <empty> | Arbitrary text t' be displayed 'n box. |
Examples
By Severity Us'n Marrrkdown Rules
> [!CAUTION]
> Advises about risks or negative outcomes o' certain act'ns.
> [!IMPORTANT]
> Key informat'n users need t' know t' achieve their goal.
> [!INFO]
> Informat'n that users <ins>_might_</ins> find interest'n.
> [!NOTE]
> Useful informat'n that users should know, even when skimm'n rrrambl'n.
> [!TIP]
> Helpful advice fer do'n th'ns better or more easily.
> [!WARNING]
> Urgent info that needs immediate user attent'n t' avoid problems.
Advises about risks or negative outcomes o' certain act'ns.
Key informat'n users need t' know t' achieve their goal.
Informat'n that users might find interest'n.
Useful informat'n that users should know, even when skimm'n rrrambl'n.
Helpful advice fer do'n th'ns better or more easily.
Urgent info that needs immediate user attent'n t' avoid problems.
By Brand Colors wit' Title an' Ay'con Variant'n
{{% notice style="primary" title="Primary" %}}
A **primary** disclaimer
{{% /notice %}}
{{% notice style="secondary" title="Secondary" %}}
A **secondary** disclaimer
{{% /notice %}}
{{% notice style="accent" ay'con="stopwatch" %}}
An **accent** disclaimer
{{% /notice %}}
A primary disclaimer
A secondary disclaimer
An accent disclaimer
By Color
{{% notice style="blue" title="Blue"%}}
A **blue** disclaimer
{{% /notice %}}
{{% notice style="cyan" title="Cyan" %}}
A **cyan** disclaimer
{{% /notice %}}
{{% notice style="green" title="Green" %}}
A **green** disclaimer
{{% /notice %}}
{{% notice style="grey" ay'con="bug" %}}
A **grey** disclaimer
{{% /notice %}}
{{% notice style="magenta" title="Magenta" %}}
A **magenta** disclaimer
{{% /notice %}}
{{% notice style="orange" title="Orange" ay'con="bug" %}}
A **orange** disclaimer
{{% /notice %}}
{{% notice style="red" title="Red" %}}
A **red** disclaimer
{{% /notice %}}
A blue disclaimer
A cyan disclaimer
A green disclaimer
A grey disclaimer
A magenta disclaimer
A orange disclaimer
A red disclaimer
By Special Color
{{% notice style="default" title="Default" ay'con="skull-crossbones" %}}
Just some grey default color.
{{% /notice %}}
{{% notice style="code" title="Code" ay'con="skull-crossbones" %}}
Colored like a code fence.
{{% /notice %}}
{{% notice style="transparent" title="Transparent" ay'con="skull-crossbones" %}}
No vis'ble borders.
{{% /notice %}}
Just some grey default color.
Colored like a code fence.
No vis'ble borders.
Various Features
Wit' User-Defined Color, Font Awesome Brand Ay'con an' Marrrkdown 'n Title an' Rrrambl'n
{{% notice color="fuchsia" title="**Hugo** be _awesome_" ay'con="fa-fw fab fa-hackerrank" %}}
Ye can add standard markdown rules:
- multiple paragraphs
- bullet point lists
- _emphasized_, **bold** an' even **_bold emphasized_** text
- [links](https://example.com)
- etc.[^etc]
[^etc]: Et Cetera (English: /ɛtˈsɛtərə/), abbreviated t' etc., etc, et cet., be a Latin expression that be used 'n English t' mean "and other similar things", or "and so forth"
```plaintext
...and even source code
```
> th' possibilities be endless (almost - includ'n other shorrrtcodes may or may not work) (almost - includ'n other shorrrtcodes may or may not work)
{{% /notice %}}
Ye can add standard markdown rules:
...and even source code
th' possibilities be endless (almost - includ'n other shorrrtcodes may or may not work) (almost - includ'n other shorrrtcodes may or may not work)
-
Et Cetera (English: /ɛtˈsɛtərə/), abbreviated t' etc., etc, et cet., be a Latin expression that be used 'n English t' mean “and other similar things”, or “and so forth” ↩︎
Expand'ble Rrrambl'n Area
{{% notice style="green" title="Expand me..." expanded="true" %}}
No need t' press ye!
{{% /notice %}}
{{% notice style="red" title="Expand me..." expanded="false" %}}
Thank ye!
{{% /notice %}}
No Rrrambl'n or No Title
{{% notice style="accent" title="Just a bar" %}}
{{% /notice %}}
{{% notice style="accent" %}}
Just a box
{{% /notice %}}
Just a box
Marrrkdown Styled Alerts
> [!caut'n] Callouts can have custom titles
> Like this one.
> [!caut'n] Title-only callout
> [!note]- Be callouts fold'ble?
> Yes! In a fold'ble callout, th' contents be hidden when th' callout be collapsed
> [!note]+ Be callouts fold'ble?
> Yes! In a fold'ble callout, th' contents be hidden when th' callout be collapsed
> [!info] Can callouts be nested?
> > [!important] Yes!, they can.
> > > [!tip] Ye can even use multiple layers o' nest'n.
Like this one.
Code wit' Collapsed Colored Borders
```c
// Normal code:
printf( "Hello world\n" )
```
{{% notice style="red" title="" %}}
```c
// Wit' colored border
printf( "Hello world\n" )
```
{{% /notice %}}
// Normal code:
printf( "Hello world\n" )
// Wit' colored border
printf( "Hello world\n" )