Alerts
A common pattern is to show alerts such as tips, warnings or info messages. The std::alert plugin provides an alert block partial which makes it easy to add alerts to your pages.
You should add the dependency to your site settings to use it:
[]
= "^1"
Afterwards, you can use the alert partial like this:
Renders to:
This is an alert with seamless Markdown handling.
When a type
is passed to the partial it is appended to the class
for the element:
Renders to:
This is a warning.
Add a label
to render a title:
Renders to:
error
This is an error.
If you want to use the default styles apply them in the dependency:
[]
= { = "^1", = { = [ "**" ] } }