Shortcodes

Call to Action Shortcode

Written by oxypteros

Example:

Latest Episode: The Last Donut

This week, we unravel the baffling clues and chilling timeline surrounding the disappearance of the last donut.
What secrets remain buried? Learn more in our latest podcast.
Listen Now

Code

{{< cta
TITLE="Latest Episode: The Last Donut"
BTN-TEXT="Listen Now"
BTN-LINK="/podcast/the-last-donut/"
BTN-LABEL="Listen to the full story now"
>}}

This week, we unravel the *baffling clues* and *chilling timeline* surrounding the disappearance of the **last donut**. 
What secrets remain buried? Learn more in our latest ***podcast***.

{{< /cta >}}

Overview

A simple text-based Call To Action shortcode with title, Markdown styled text content and a button styled link.

Usage

  • Use this shortcode on the homepage and/or section pages (i.e. _index.md).
  • This shortcode requires both opening and closing tags.

Parameters Reference

TITLE
TITLE="Example title" — (string, optional)
H2 heading.
BTN-TEXT
BTN-TEXT="Link text" — (string, optional)
Text for the button-styled link.
BTN-LINK
BTN-LINK="/link/to/path/" — (string, optional)
href attribute for button-styled link. Requires BTN-TEXT to be set.
BTN-LABEL
BTN-LABEL="Example label" — (string, optional)
aria-label attribute for button-styled link.
Inner Content
The main body of text. Supports Markdown formatting.

Error Codes

liva-sc-170
Unrecognized parameter detected.
liva-sc-172
Incomplete link/text pair.
Edit this page on Github