Messages

Jul 30, 2017

The message shortcode is a simple wrapper for the Bulma message class. The syntax is:

{{< message class="<class>" title="<title>" >}}  
content
{{< /message >}}  
your title
your content

Replace <title> with the title of the message and <class> with a Bulma class. The class markup is taken directly from the names of the Bulma classes:

  1. is-dark
  2. is-primary
  3. is-info
  4. is-success
  5. is-danger
  6. is-warning

If no class is specified, the message will default to something similar to the dark version.

Note
You can specify whether the content inside the notification is rendered as plain HTML or Markdown by using {{< >}} or {{% %}}, respectively.

Examples

default

dark
is-dark
primary
is-primary
info
is-info
success
is-success
warning
is-warning
danger
is-danger

Last edited: Jul 31, 2017


Categories:
Tags: