Shortcodes

Adrian Winterstein

The Daisy theme adds certain shortcodes that you can use in the markdown files of your website.

Badges

The following bagdes with optional icon for info, success, warning and error messages exist in the theme:

This is an info text.
This is a success text.
This is a warning text.
This is an error text.

This is how they can be used in the markdown:

{% badge_info(icon=true) %}This is an info text.{% end %}
{% badge_success(icon=true) %}This is a success text.{% end %}
{% badge_warning(icon=true) %}This is a warning text.{% end %}
{% badge_error(icon=true) %}This is an error text.{% end %}

Additionally, there are bagdes with the main colors of the selected color scheme:

This is a badge with the primary theme color.
This is a badge with the secondary theme color.
This is a badge with the accent theme color.
This is a badge with the neutral theme color.

This is how they can be used in the markdown:

{% badge_primary() %}This is a badge with the primary theme color.{% end %}
{% badge_secondary() %}This is a badge with the secondary theme color.{% end %}
{% badge_accent() %}This is a badge with the accent theme color.{% end %}
{% badge_neutral() %}This is a badge with the neutral theme color.{% end %}