freifunk-rhein-sieg.net/site/themes/hugo_ff_theme/layouts/shortcodes/community.html

46 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2020-02-09 16:44:57 +00:00
<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">
<img src="/link.png" class="m-2" min-width="32px" width="32px">
</a>
2020-02-09 16:44:57 +00:00
</div>
{{ end }}
{{ if .Get "facebook" }}
<div class="col p-0">
<a class="btn btn-on-com-card w-100" href="{{ .Get "facebook" }}" target="_blank">
<img src="/f_logo_RGB-Black_58.png" class="m-2" min-width="32px" width="32px">
</a>
2020-02-09 16:44:57 +00:00
</div>
{{ end }}
{{ if .Get "twitter" }}
<div class="col p-0">
<a class="btn btn-on-com-card w-100" href="{{ .Get "twitter" }}" target="_blank">
<img src="/Twitter_Social_Icon_Circle_Color.png" class="m-2" min-width="32px" width="32px">
</a>
2020-02-09 16:44:57 +00:00
</div>
{{ end }}
{{ if .Get "email" }}
<div class="col p-0">
<a class="btn btn-on-com-card w-100" href="{{ .Get "email" }}" target="_blank">
<img src="/mail.png" class="m-2" min-width="32px" width="32px">
</a>
2020-02-09 16:44:57 +00:00
</div>
{{ end }}
</div>
</div>
</div>