Commit 6baa486b authored by Louis Paternault's avatar Louis Paternault

Cliquer sur l'image permet d'accéder à l'article

parent e415c97e
Pipeline #184288 passed with stages
in 16 minutes and 21 seconds
......@@ -13,11 +13,13 @@
{% for item in site.get(root).children %}
{% if limit == 0 or limit > loop.index0 %}
<div class="card mb-4" style="min-width: 300px; max-width: 450px;">
<h3 class="card-header"><a href="{{ item.path|url }}">{{ item.title }}</a></h3>
{% if item.image %}
{% set image = site.get(item.path + "/" + item.image) %}
<img style="width: 100%; height: 10em; object-fit: cover; display: block;" src="{{ image.thumbnail(400)|url }}" alt="{{ image.title }}">
{% endif %}
<a href="{{ item.path|url }}">
<h3 class="card-header">{{ item.title }}</h3>
{% if item.image %}
{% set image = site.get(item.path + "/" + item.image) %}
<img style="width: 100%; height: 10em; object-fit: cover; display: block;" src="{{ image.thumbnail(400)|url }}" alt="{{ image.title }}">
{% endif %}
</a>
{% if item.description %}
<div class="card-body">
<p class="card-text">{{ item.description }}</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment