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