{{- /* Hextra v0.13.0's hero-button, with an optional pixel icon from assets/icons/ before the text: {{< hextra/hero-button text="Install" link="docs/getting-started/install/" icon="download" >}}. Keep the opening tag on one line: when nested, a lone ">" is parsed as a blockquote marker. */ -}} {{- $link := .Get "link" -}} {{- $text := .Get "text" -}} {{- $style := .Get "style" -}} {{- $icon := .Get "icon" -}} {{- $external := hasPrefix $link "http" -}} {{- $href := cond (hasPrefix $link "/") ($link | relURL) $link -}} {{- with $icon }}{{ partial "icon.html" (dict "name" . "position" $.Position) }}{{ end -}} {{- $text -}}