CTA

Displays a call to action.

Example

Usage

{{ $args := (dict
        "url" "https://www.hugolify.io/"
        "text" "Hugolify button"
        "blank" true
        ) }}
{{ partial "commons/cta" $args }}

HTML rendered

<a class="btn" href="https://www.hugolify.io/" target="_blank" rel="noreferrer noopener" title="Hugolify button - external link">Hugolify button</a>

Datas

url: "" // Button href
text: "" // Button text
blank: false // boolean, true to add target="_blank"
class: "" // Add additional class