Shortcodes
Call to Action
Author
oxypteros
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 NowWhat secrets remain buried? Learn more in our latest podcast.
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. RequiresBTN-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 Reporting
- Warnings are printed to the Hugo terminal.
- OCD enabled.
Error Codes
- ocd-sc-141
- Unrecognized parameter detected.
- ocd-sc-142
BTN-LINK
is provided butBTN-TEXT
is missing.