Added shortcodes for community page
This commit is contained in:
parent
e4fb75eef9
commit
5b5bd1df02
38
site/themes/hugo_ff_theme/layouts/shortcodes/community.html
Normal file
38
site/themes/hugo_ff_theme/layouts/shortcodes/community.html
Normal file
@ -0,0 +1,38 @@
|
||||
<div class="card bg-yellow">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title text-center">{{ .Get "name" }}</h5>
|
||||
<p class="card-text text-center">{{ .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-on-com-card w-100" href="{{ .Get "link" }}" target="_blank">Link</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Get "facebook" }}
|
||||
<div class="col p-0">
|
||||
<a class="btn btn-on-com-card w-100" href="{{ .Get "facebook" }}" target="_blank">Facebook</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Get "twitter" }}
|
||||
<div class="col p-0">
|
||||
<a class="btn btn-on-com-card w-100" href="{{ .Get "twitter" }}" target="_blank">Twitter</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Get "email" }}
|
||||
<div class="col p-0">
|
||||
<a class="btn btn-on-com-card w-100" href="{{ .Get "email" }}" target="_blank">Email</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
</div>
|
@ -0,0 +1 @@
|
||||
<div class="card-deck mb-4">
|
Loading…
Reference in New Issue
Block a user