mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
modules: rename wowchemy
module to wowchemy-bootstrap
Based on user feedback to give modules clearer names now that effort has shifted from Bootstrap UI to the Tailwind UI in `wowchemy-tailwind`
This commit is contained in:
parent
999dc0706f
commit
cc1b1a8aee
372 changed files with 1 additions and 1 deletions
33
modules/wowchemy-bootstrap/layouts/shortcodes/cta.html
Normal file
33
modules/wowchemy-bootstrap/layouts/shortcodes/cta.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
{{/*
|
||||
Docs: https://wowchemy.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