{{- /* A shortcode for rendering a button with a link. Project override: link resolution uses utils/site-href (baseURL-safe). @param {string} link The link of the button. @param {string} text The text of the button. @param {string} style The style of the button. @example {{< hextra/hero-button text="Get Started" link="docs" >}} */ -}} {{- $link := .Get "link" -}} {{- $text := .Get "text" -}} {{- $style := .Get "style" -}} {{- $external := hasPrefix $link "http" -}} {{- $href := partial "utils/site-href.html" $link -}} {{- $text -}}