Skip to main content

Badge

Badges can be used to signify short information and can be placed next to headings or other types of text.

There are two ways badges are implemented with the LFP Docs default theme:

  1. Using the {% badge %} shortcode.
  2. Setting the badge frontmatter key.

When using the shortcode, you can add arbitrary text content for the badge.

Example

{% badge "caution" %}Caution{% endbadge %}

{% badge "important" %}Important{% endbadge %}

{% badge "note" %}Note{% endbadge %}

{% badge "tip" %}Tip{% endbadge %}

{% badge "warning" %}Warning{% endbadge %}
Caution Important Note Tip Warning