Added link shortcode
This commit is contained in:
parent
dccbafa287
commit
08421e9da9
20
site/themes/hugo_ff_theme/layouts/shortcodes/link.html
Normal file
20
site/themes/hugo_ff_theme/layouts/shortcodes/link.html
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5>{{ .Get "name" }}</h5>
|
||||
<p>{{ .Get "description" }}</p>
|
||||
</div>
|
||||
<div class="card-footer p-0">
|
||||
<div class="row m-0">
|
||||
|
||||
{{ if .Get "link" }}
|
||||
<div class="col p-0">
|
||||
<a class="btn btn-dark w-100" href="{{ .Get "link" }}" target="_blank">{{ .Get "link_caption" }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user