fix: links

This commit is contained in:
George Cushen 2023-11-07 23:09:38 +00:00
commit 9b2e271c7c
830 changed files with 4612 additions and 1131 deletions

View file

@ -0,0 +1,33 @@
{{/*
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#call-to-action-buttons
Parameters
----------
cta_text :
Text to display in the CTA button.
cta_link :
Link to action when CTA button is clicked.
cta_new_tab : default "false"
If "true", open the link in a new tab.
cta_alt_text : optional
Alternate text to display in the CTA button.
cta_alt_link : optional
Link to alternative action when CTA button is clicked.
cta_alt_new_tab : optional, default "false"
If "true", open the alternative link in a new tab.
*/}}
<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>