Files
HugoBlox-kit/wowchemy/layouts/shortcodes/cta.html
T
George Cushen 70c465806c feat: migrate to latest web best practices
Informed by Google Lighthouse insights.

Part 2 - also see 4b9ee3021c
2021-01-06 22:20:27 +00:00

15 lines
560 B
HTML

<ul class="cta-group">
{{ if (.Get "cta_text") }}
<li>
<a href="{{.Get "cta_link"}}" {{if eq (.Get "cta_new_tab") "true" }}target="_blank" rel="noopener"{{end}} class="btn btn-primary px-3 py-3">{{ (.Get "cta_text") | markdownify | emojify }}</a>
</li>
{{ end }}
{{ if (.Get "cta_alt_text") }}
<li>
<a href="{{.Get "cta_alt_link"}}" {{if eq (.Get "cta_alt_new_tab") "true" }}target="_blank" rel="noopener"{{end}}>
{{ (.Get "cta_alt_text") | markdownify | emojify }} <i class="fas fa-angle-right"></i>
</a>
</li>
{{end}}
</ul>