mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
fix: links
This commit is contained in:
parent
f9b227c335
commit
9b2e271c7c
830 changed files with 4612 additions and 1131 deletions
33
modules/blox-bootstrap/layouts/shortcodes/cta.html
Normal file
33
modules/blox-bootstrap/layouts/shortcodes/cta.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue