link via image

This commit is contained in:
Nico Schottelius 2020-02-02 15:27:47 +01:00
parent 23b0901113
commit f1fa9f3408
3 changed files with 6 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View file

@ -2,6 +2,8 @@ title: Open Chat
--- ---
subtitle: Open Source requires Open Communication subtitle: Open Source requires Open Communication
--- ---
image: /u/image/cards/open-chat.jpg
---
content: content:
You can chat with us either via Mattermost on You can chat with us either via Mattermost on

View file

@ -11,17 +11,18 @@
{% endif %} {% endif %}
<div class="col-md-4 mb-3"> <div class="col-md-4 mb-3">
<div class="card"> <div class="card">
<a href="{{ childpage|url }}">
{% if childpage.image %} {% if childpage.image %}
<img class="card-img-top" src="{{ childpage.image }}" <img class="card-img-top" src="{{ childpage.image }}"
alt="childpage.title"> alt="{{ childpage.title }}">
{% else %} {% else %}
<img class="card-img-top" src="/u/image/cards/placeholder.png" <img class="card-img-top" src="/u/image/cards/placeholder.png"
alt="childpage.title"> alt="{{ childpage.title }}">
{% endif %} {% endif %}
</a>
<div class="card-body"> <div class="card-body">
<h5 class="card-title">{{ childpage.title }}</h5> <h5 class="card-title">{{ childpage.title }}</h5>
<p class="card-text">{{ childpage.subtitle }}</p> <p class="card-text">{{ childpage.subtitle }}</p>
<a class="btn btn-primary" href="{{ childpage|url }}">Check it out</a>
</div> </div>
</div> </div>
</div> </div>